dro*_*ren 17 user-interface android
是否可以删除标签栏中显示的底线?未选中时为灰色.
是否有可能将黄色变成其他东西?
layout xml:http://pastebin.com/M2KqtH1r
Jas*_* PJ 39
只需在xml文件的tabWidget中执行此操作即可.
android:tabStripEnabled="false"
Run Code Online (Sandbox Code Playgroud)
希望你明白.;)
Sik*_*.ph 20
在AndroidManifest.xml中:
<activity android:name=".ActivityName" android:theme="@style/tabTheme"/>
Run Code Online (Sandbox Code Playgroud)
在values/styles.xml中:
<style name="tabTheme" parent="android:style/Theme">
<item name="android:tabWidgetStyle">@style/Widget.TabWidget</item>
</style>
<style name="Widget.TabWidget" parent="android:Theme">
<item name="android:tabStripEnabled">false</item>
</style>
Run Code Online (Sandbox Code Playgroud)
war*_*ero 15
android:tabStripEnabled ="false"对我不起作用
通过执行以下操作我能够使其正常工作
<android.support.design.widget.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabIndicatorColor="@android:color/transparent"
app:tabIndicatorHeight="0dp" />
Run Code Online (Sandbox Code Playgroud)
这两个是主要的东西
app:tabIndicatorColor="@android:color/transparent"
app:tabIndicatorHeight="0dp"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
31271 次 |
最近记录: |