Ответ 1
Это потому, что оно textStyle
, а не textStyle
. Атрибуты чувствительны к регистру.
<item name="android:textStyle">normal</item>
Как я могу дать смелые и нормальные стили внутри нашего styles.xml? Код, который я дал, это:
<style name="textbold" parent="@android:style/TextAppearance">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textstyle">bold</item>
</style>
<style name="textregular" parent="@android:style/TextAppearance">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textstyle">normal</item>
</style>
Но здесь отображается ошибка: <item name="android:textstyle">
Это потому, что оно textStyle
, а не textStyle
. Атрибуты чувствительны к регистру.
<item name="android:textStyle">normal</item>