mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-29 03:26:44 +08:00
bugfix: the span in Button make no sense when textAllCaps is sett to true
This commit is contained in:
@@ -18,8 +18,5 @@
|
||||
<style name="Button.Compat" parent="ButtonBase.Compat">
|
||||
<!-- 去掉5.0下Button点击的阴影动画效果 -->
|
||||
<item name="android:stateListAnimator">@null</item>
|
||||
<!-- 取消5.0下Button字符默认大写的功能(会导致 Spannable 失效) -->
|
||||
<!-- http://stackoverflow.com/questions/29007746/button-settext-with-spannable-dosent-work-for-android-5-0-lollipop -->
|
||||
<item name="android:textAllCaps">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -240,7 +240,11 @@
|
||||
<style name="ListViewBase.Compat" parent="@style/Widget.AppCompat.ListView" />
|
||||
<style name="GridViewBase.Compat" parent="android:Widget.GridView" />
|
||||
<style name="ImageButtonBase.Compat" parent="@style/Widget.AppCompat.ImageButton" />
|
||||
<style name="ButtonBase.Compat" parent="@style/Widget.AppCompat.Button" />
|
||||
<style name="ButtonBase.Compat" parent="@style/Widget.AppCompat.Button" >
|
||||
<!-- 取消 Button 字符默认大写的功能(会导致 Spannable 失效),默认值只影响 5.0 以上版本,但使用Compat包后,4.x 版本也会受到影响 -->
|
||||
<!-- http://stackoverflow.com/questions/29007746/button-settext-with-spannable-dosent-work-for-android-5-0-lollipop -->
|
||||
<item name="android:textAllCaps">false</item>
|
||||
</style>
|
||||
<style name="EditTextBase.Compat" parent="@style/Widget.AppCompat.EditText" />
|
||||
<style name="AutoCompleteTextViewBase.Compat" parent="@style/Widget.AppCompat.AutoCompleteTextView" />
|
||||
<style name="DropDownListViewBase.Compat" parent="@style/Widget.AppCompat.ListView.DropDown" />
|
||||
|
||||
Reference in New Issue
Block a user