如何设置(通过代码)Activity
是透明的?当用户单击按钮时,我希望 Activity 变得透明。可能吗?
最佳答案
您可以使用setTheme (android.R.style.Theme_Translucent)
但请牢记 api 文档:
Set the base theme for this context. Note that this should be called before any views are instantiated in the Context (for example before calling setContentView(View) or inflate(int, ViewGroup)).
关于android - 在 Android 中显示一个透明的 Activity?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7242806/