开发者

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

开发者 https://www.devze.com 2023-02-16 23:10 出处:网络
i have created an app which has aTextView which contain some text. i made it transparent by this code <TextView xmlns:android=\"htt开发者_JAVA技巧p://schemas.android.com/apk/res/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

精彩评论

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