We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537f065 commit de8a60dCopy full SHA for de8a60d
README.md
@@ -300,6 +300,17 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
300
`autolayout-widget`中方便他人,ps:需要用到哪个copy就好了,不要直接引用`autolayout-widget`,因为其引用了大量的库,可能很多
301
库你是用不到的。
302
303
+###(3)java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
304
+
305
+这个问题是因为默认AutoLayoutActivity会继承自AppCompatActivity,所以默认需要设置
306
+Theme.AppCompat的theme;
307
308
+如果你使用的依旧是FragmentActivity等,且不考虑使用AppCompatActivity,
309
+你可以选择自己编写一个`MyAutoLayoutActivity extends 目前你使用的Activity基类`,例如
310
+`MyAutoLayoutActivity extends FragmentActivity`,然后将该库中AutoLayoutActivity中的逻辑
311
+拷贝进去即可,以后你就继承你的`MyAutoLayoutActivity`就好了。
312
313
+ps:还是建议尽快更新SDK版本使用`AppCompatActivity`.
314
315
316
0 commit comments