java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
来源:互联网 发布:java购物系统源码 编辑:程序博客网 时间:2024/05/18 12:29
java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library
我遇到这个错误是在fragment里应用了coordinatorLayout,xml inflate无效
查了好多这是最新的sdk的bug
解决办法:在style里写一个自定义的style,然后在加入这个fragment的Activty 添加theme
<style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item></style><activity android:name="EventsDetailsActivity" android:theme="@style/AppTheme.NoActio>
还有一种方法就是直接给fragment添加theme,在代码里直接添加
final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.community_theme); // clone the inflater using the ContextThemeWrapper LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper); View viewRoot = localInflater.inflate(R.layout.fragment_rank_landing, container, false);
0 0
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
- Java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with ...
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this
- eclipse:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) wit
- Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
- Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
- Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant
- 基于卷积神经网络的图像超分辨率[译文]
- 银行卡验证工具类分享
- Microsoft .NET Framework 版本
- 程序员解决问题的策略总结
- 纵观客户服务渠道变化,引领在线客服系统新方向
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the
- 浅谈Jmeter之中文乱码问题解决方法
- 【Mysql】禁止在项目中使用跨库联表查询
- devDependencies 和 dependencies区别
- 浅谈堆排序
- STL整理
- b-jui 自定义工具栏按钮的问题
- Snackbar
- 正则表达式