国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
[Android UI] ActionBar 自定義屬性

actionbar 默認(rèn)放在頂部, 如果在application或者activity中加入

android:uiOptions="splitActionBarWhenNarrow"

那么,actionbar將在底部顯示。

自定義屬性,包括自定義actionbar的背景顏色

 <!-- the theme applied to the application or activity -->    <style name="CustomActivityTheme" parent="@style/Theme.Base.AppCompat">        <item name="android:actionBarStyle">@style/MyActionBar</item>   
<!-- 自定義actionbar的背景顏色-->
<item name="android:actionOverflowButtonStyle">@style/MyActionButtonOverflow</item>
<!--自定義actionbar的overflow圖片-->
<item name="android:actionBarDivider">@color/black</item>
<!-- 自定義actionbar的item之間的分割線-->
<item name="android:popupMenuStyle">@style/MyPopupMenu</item>
<!-- 自定義popupwindow的背景顏色-->
<!-- other activity and action bar styles here --> </style> <!-- style for the action bar backgrounds --> <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@color/black</item> <item name="android:backgroundStacked">@color/black</item> <item name="android:backgroundSplit">@color/black</item> </style>

自定義actionbar的overflow的圖片

 <style name="MyActionButtonOverflow" parent="android:style/Widget.Holo.Light.ActionButton.Overflow">       <item name="android:src">@drawable/ic_dxhome_airplane_on</item>       <item name="android:background">?android:attr/actionBarItemBackground</item>       <item name="android:contentDescription">"Lala"</item>   </style>

自定義點擊overflow彈出的popupwindow的背景顏色

<style name="MyPopupMenu" parent="android:style/Widget.Holo.Light.ListPopupWindow">       <item name="android:background">@color/white</item> </style>

 

 

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
【Android 應(yīng)用開發(fā)】 ActionBar 樣式詳解
【Android UI設(shè)計與開發(fā)】第13期:自定義ActionBar風(fēng)格和樣式
ActionBar 奧義·詳解
顯示/返回按鈕在Android嵌套PreferenceScreen?
android 應(yīng)用啟動出現(xiàn)actionbar 或者空白界面
Android自定義圓形ProgressBar半徑大小
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服