自定義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算法如何實現將信息和影像結合產生診斷結果?
大數據如何推動金融業的商業變革?