Android设置Activity背景为透明style发生的错误
来源:互联网 发布:淘宝5金冠店铺有哪些 编辑:程序博客网 时间:2024/05/17 13:43
一般情况下在manifest.xml中设置透明主题背景就可以了。
@android:style/Theme.Translucent @android:style/Theme.Translucent.NoTitleBar @android:style/Theme.Translucent.NoTitleBar.Fullscreen
但是自己在尝试的过程中发生了如下错误,java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendent) with this activity.
修改成如下就可以了:
<activity android:name=".ui.my.activity.DiversionUrlActivity" android:theme="@style/Theme.Translucent" android:screenOrientation="portrait" />
阅读全文
0 0
- Android设置Activity背景为透明style发生的错误
- Android设置Activity背景为透明style
- Android设置Activity背景为透明style
- Android设置Activity背景为透明style
- Android设置Activity背景为透明style
- Android做一个透明的Activity,设置Activity背景为透明style
- android 设置activity为对话框,且背景为透明
- android设置Activity背景透明
- android activity 背景 透明 设置方法
- Android设置窗体Activity背景透明
- Android开发之Activity设置透明背景
- Android 代码设置Activity 背景透明
- android activity设置透明或者半透明背景
- Activity设置透明背景
- Activity设置透明背景
- 透明背景Activity设置
- Activity的透明背景度的设置
- 关于设置透明Activity背景的实现
- js2
- python读取配置文件
- 多线程之NSThread
- cdh集成kafka,spark2
- Linux笔记 程序非正常退出报错 Segmenttation fault
- Android设置Activity背景为透明style发生的错误
- leetcode#552. Student Attendance Record II
- 一个页面从输入 URL 到页面加载显示完成,这个过程中都发生了什么?
- code
- laravel5 怎么实现事务
- 了解sklearn中的pipeline及FeatureUnions
- Java web访问WEB-INF下的jsp的方法
- jstack(查看线程)、jmap(查看内存)和jstat(性能分析)命令
- 51nod 1099 任务执行顺序(贪心)