2013-08-29 116 views
1

我想製作一個像抽屜一樣的iOS 7,我可以從底部滑動,不會覆蓋整個屏幕,並且在Android上是半透明/模糊的。Android半透明滑動抽屜

我看了一下Android上的SlidingDrawer嘗試開始,但它看起來像被折舊。我如何在android上創建類似的未來驗證效果?

+0

這可能會幫助你嗎? http://stackoverflow.com/questions/13678595/how-to-create-slide-layout-animation-in-android – Beko1997

回答

2

只需更改在導航抽屜碎片中填充的List視圖的背景色。

使用的背景顏色「#22FFFFFF」使得導航抽屜半透明

使用十六進制顏色代碼,它由兩個數字字母和六對本身的顏色,就像這樣:

採用Android: - 用於更黑暗

如果事實證明有幫助請評價它的背景=「#C0000000」:背景=「#88676767」第88更改爲不透明的選擇

機器人。

<ListView xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:choiceMode="singleChoice" 
android:divider="@android:color/transparent" 
android:dividerHeight="0dp" 
android:background="#22FFFFFF" 
tools:context="com.Navigation Drawer Fragment" />