折腾:
【未解决】搞懂rcsjta的Provisioning中IMS domain domain含义和如何填写
期间,觉得rcsjta的core的apk,截图后,很多IMS的xxx中的最左边的I,往往都快看不到了。
影响显示。所以希望:增加左边边距。
去看了看代码后,找到貌似位置是:
res/layout/provisioning_profile.xml
。。。 <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.AppCompatTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="5dip" android:text="@string/user_msg_title"/>
![](https://www.crifan.org/files/pic/uploads/2021/09/2a4b18d052a642b4938b31bfe0b61ff0.jpg)
然后就照葫芦画瓢加上:
android:paddingLeft=“10dip"
变成:
<android.support.v7.widget.AppCompatTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="5dip" android:paddingLeft="10dip" android:text="@string/user_msg_title"/>
试试,效果:
![](https://www.crifan.org/files/pic/uploads/2021/09/3bfb493fda9b471d9e4eeea71f241750.jpg)
是可以的。
然后再去找找其他的,发现和provisioning_profile,并列的还有stack等xml
res/layout/provisioning_stack.xml
![](https://www.crifan.org/files/pic/uploads/2021/09/c16941cf777a48a493a226bd8756fd84.jpg)
所以很明显:
要找到全局的,所有tab都增加左边缩进的才可以。
然后感觉应该是:
res/layout/provisioning.xml
<android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="0px" android:layout_weight="1" android:background="@android:color/white"/>
去加上
android:paddingLeft=“5dip"
之后是:
![](https://www.crifan.org/files/pic/uploads/2021/09/d03e1d3322ec479cb69582bddc09e006.jpg)
然后看看效果:
![](https://www.crifan.org/files/pic/uploads/2021/09/2878d646f3c74580ab5c81c724ddd141.jpg)
是可以全部都缩进了。
其他tab页,比如stack也有缩进了:
![](https://www.crifan.org/files/pic/uploads/2021/09/ce3557266bb2490c9d67550d4165d526.jpg)
但是底部颜色是白色:
android:background="@android:color/white"/>
不是我们希望的统一的淡蓝灰色?
去找找不同tab页底色,找到了,感觉是:
res/layout/provisioning_profile.xml
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/material_blue_grey_800" android:orientation="vertical">
中的
android:background="@color/material_blue_grey_800"
去改为:
<android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="0px" android:layout_weight="1" android:paddingLeft="5dip" android:background="@color/material_blue_grey_800"/>
此处layout编辑页面预览效果立刻就能看到背景色变化了:
![](https://www.crifan.org/files/pic/uploads/2021/09/b235de883f50441aa20747b811cc934a.jpg)
实际运行效果:
![](https://www.crifan.org/files/pic/uploads/2021/09/461e6b33713848d58cc79d799bfc384b.jpg)
![](https://www.crifan.org/files/pic/uploads/2021/09/cee524ab5ae44f048d5bf72cf29497b4.jpg)
就是我们希望的,既有左边缩进,又有统一背景色了
【总结】
此处经过修改后的:
RCS/rcsjta/core/res/layout/provisioning.xml
<android.support.v4.view.ViewPager 。。。 android:paddingLeft="5dip" android:background="@color/material_blue_grey_800"/> </LinearLayout>
即可是实现我们希望的:
provisioning的所有的tab页中,左边都缩进一点,且背景色统一
目的是让原先最左边的IMS等字段能完整显示,而不显得是被截断的感觉。
![](https://www.crifan.org/files/pic/uploads/2021/09/b28a1a20a1644963a772a85009681502.jpg)
转载请注明:在路上 » 【已解决】rcsjta的core的apk调整页面增加左边边距