我做了this source。它工作但我看不到标签上的图像。你能帮我解决一下吗?
我解决了。改变了ic_tab xmls就好了。
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- When selected, you should use bg with grey -->
<item android:state_selected="true" >
<!-- <layer-list> -->
<!-- <item android:drawable="@drawable/tab1_over"/> -->
<!-- <item android:drawable="@drawable/camera"/> -->
<!-- </layer-list> -->
<layer-list>
<item android:left="0dp" android:width="0dp"><bitmap android:gravity="top" android:scaleType="fitXY" android:src="@drawable/home" />
</item>
</layer-list></item>
<!-- When not selected, you should use bg with white -->
<item>
<layer-list>
<item android:left="0dp" android:width="0dp"><bitmap android:gravity="top" android:scaleType="fitXY" android:src="@drawable/home2" />
</item>
</layer-list>
</item>
</selector>
但我如何更改标签文字位置?