开发者

how to make a View tranparent to see background statusbar in Android

i have created an app which has a TextView which contain some text. i made it transparent by this code

<TextView xmlns:android="htt开发者_JAVA技巧p://schemas.android.com/apk/res/android"
                    android:id="@+id/Label"
                    android:layout_width="fill_parent" 
                    android:layout_height="wrap_content" 
                    android:text="Credit Balance 52$"
                    android:background = "#00000000"

/>

i want my application to be full screen but at the same time user will be able to see device statusbar behind TextView at top.

Please suggest me some solution of this problem.

Thanks


try using android.R.style.Theme_Translucent theme for your activity

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜