自定义Android系统Tab样式
res/drawable/tab_indicator.xml
<selector xmlns:andro> <item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_focus" /> <item android:state_pressed="true" android:drawable="@drawable/buttonbar_pressed" /> <item android:state_focused="true" android:drawable="@drawable/buttonbar_focused" /> <item android:drawable="@drawable/buttonbar_normal" /> </selector>
res/color/tab_indicator_text.xml
<selector xmlns:andro> <item android:state_selected="true" android:color="#FF102542" /> <item android:state_focused="true" android:color="#FF102542" /> <item android:state_pressed="true" android:color="#FF102542" /> <item android:color="#FFC2C2C2" /> </selector>
res/layout/tab_indicator.xml
<RelativeLayout xmlns:andro android:layout_width="0dip" android:layout_height="70dip" android:layout_weight="1" android:layout_marginLeft="-3dip" android:layout_marginRight="-3dip" android:orientation="vertical" android:background="@android:drawable/tab_indicator"> <ImageView android: android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" /> <TextView android: android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:textSize="14px" /> </RelativeLayout>
最后更新:2017-04-03 12:53:43
上一篇:
【转载】使用ubuntu12.04自带Remmina 远程桌面客户端远程登录
下一篇:
Magento - GRID FILTER FOR COLUMNS WITH COMPLEX VALUES
springboot(三):Spring boot中Redis的使用
WCF中关于可靠会话的BUG!!
RDC自动化测试和持续集成托管服务上线
linux下串口编程设置函数---------set_opt(fd1,115200,8,'N'1)--------------------
即将到来的数据中心僵尸末日,谁能成为最后幸存者?
导入Excel出错引出两类异常——数据库异常和业务异常处理方式
在LINUX 2.6中,有四种关于IO的调度算法
获取sql server与年、季度、月、周首尾有关的时间函数
科大讯飞陶晓东:AI算法如何实现将信息和影像结合产生诊断结果?
大数据如何推动金融业的商业变革?