tôi có thể thay đổi nút xuất hiện văn bản bằng cách đặt nó ngay trong đối tượng như thế này:nút Android textAppearance
<Button
android:id="@+id/login_btn_bypass"
android:textSize="15dp"
android:textColor="#878787"
android:textStyle="bold" />
nhưng không phải khi sử dụng textAppearance trong phong cách
// in layout xml
<Button
android:id="@+id/login_btn_login"
android:textAppearance="@style/login_button_text_appearance" />
// in style definition
<style name="login_button_text_appearance">
<item name="android:textSize">15dp</item>
<item name="android:textColor">#a7a7a7</item>
<item name="android:textStyle">bold</item>
</style>
có ai biết tại sao?
Tôi không thấy bất kỳ android: style on Button nào, tôi nên áp dụng đề xuất của bạn như thế nào? –
không có thuộc tính có tên android: style, nó đặt tên trực tiếp theo phong cách, xem chỉnh sửa của tôi – Houcine