How do I create a transparent Activity on Android?

前端 未结 22 2189
忘掉有多难
忘掉有多难 2020-11-21 04:43

I want to create a transparent Activity on top of another activity.

How can I achieve this?

22条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 05:25

    Assign it the Translucent theme

    android:theme="@android:style/Theme.Translucent.NoTitleBar"
    

提交回复
热议问题