我正在尝试让我的ICS(API版本15)应用程序与Gingerbread(API版本10)兼容,但是任何具有?android:attr/
属性的布局XML都会出现InflateException Error inflating class <Unknown>
错误。如果我注释掉这些属性,我可以编译和运行应用程序,但当然它看起来很糟糕。
我不想复制我正在使用的所有android.R.attr
项,但目前我不知道另一种方法。
我正在使用ActionBarSherlock让ActionBar工作,我似乎没有使用其他需要支持库的东西(虽然在尝试解决这个问题的过程中已经包含了它),只是这些基于主题的资源让我卡住了。
我正在使用的一些主题资源是:
?android:attr/textColorSecondaryInverse
?android:attr/textAppearanceLarge
?android:attr/dividerVertical
?android:attr/selectableItemBackground
?android:attr/textAppearanceMedium
?android:attr/dividerVertical
?android:attr/dividerHorizontal
dividerHorizontal
。 - mente