I have something like the following (shown below) defined in styles.xml. But Android crashes due to using @ string / fontExtraLarge. I guess this is due to the order of determination, but whether it is legal.
I could use the "parent" attribute for this, but just to define one style does not make sense. Is there any way to solve this problem.
By the way, the error I get is - It is not possible to inflate XML, which points to layout.XML, but really this file causes this problem.
<string name="fontExtraLarge">20sp</string> <string name="fontLarge">18sp</string> <string name="fontMedium">16sp</string> <string name="fontSmall">10sp</string> <string name="fontNormal">10sp</string>' <style name="screenHeader"> <item name="android:layout_width">fill_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:textStyle">bold</item> <item name="android:typeface">serif</item> <item name="android:textSize">@string/fontExtraLarge</item> <item name="android:textColor">@color/white</item> <item name="android:gravity">center</item> </style>
source share