对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
来源:互联网 发布:h5制作软件下载 编辑:程序博客网 时间:2024/06/06 19:32
在跟着视频学习安卓开发时候发现代码一致,结果我的却报错。
原因:我是用的开发环境为Androidstudio,视频中使用的是eclipse。在Androidstudio中activity默认继承的AppCompatActivity,只需要在Androidmanifest文件中配置。
<activity android:name=".Activity02" android:theme="@style/Theme.AppCompat.Dialog" />
关于Activity和AppCompatActivity的区别参看 点击打开链接
阅读全文
0 0
- 对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 报错方案:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Activity使用主题不兼容报错-You need to use a Theme.AppCompat theme (or descendant) with this activity
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- Android报错集锦之一:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 关于“you need to use a theme.appcompat theme (or descendant) with this activity”错误
- Android开发~you need to use a theme.appcompat theme (or descendant) with this activity
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 【Android】You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决
- you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- #python练习#leetcode392. Is Subsequence【贪心】
- 欢迎使用CSDN-markdown编辑器
- Android 签名时 v2 与 v1 的选择
- USACO 2.4 D Bessie Come Home 题解
- LibreOJ504
- 对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 安卓复杂滑动案例 自定义behavior源码分析 实现头布局图片的缩放透明度变化,RecycleView的滑动布局,坐标变化
- nginx、php-fpm等添加自启动
- 解决批量解密DES文件(以图片为例子)
- RequireJS
- 北大大数据机试题
- 有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 <configuration>\<system.web>\<
- 25 个你需要知道的人工智能术语
- 接口自动化-步骤、遇到的问题及解决方法(jmeter、ant、Jenkins)