[英]How to properly change Tab Background in Android
I am a newbie to Android Development, and facing this particular problem while changing TabBackground Image. 我是Android开发的新手,并且在更改TabBackground Image时遇到此特定问题。
As you can see in the attached Image, there is a thin gray line. 如您在附件的图像中看到的,有一条细的灰色线。 And I am unable to figure out where is it coming from.
我无法弄清楚它的来源。 Can you please assist me in removing it.
您能帮我删除它吗?
I have checked there is no padding anywhere, and android:layout_width="wrap_content" and android:layout_height="wrap_content". 我检查了任何地方都没有填充,以及android:layout_width =“ wrap_content”和android:layout_height =“ wrap_content”。
Actual Tab Background Image 实际的标签背景图片
Just in XML file where you have mentioned a tag called "Tab-widget" , in it write 在XML文件中,您提到了一个名为“ Tab-widget”的标签,
android:tabStripEnabled="false"
It will make sure that the bottom line under all the tabs will disappear. 这将确保所有选项卡下的底线都将消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.