We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.5
2.1.0
在target>30 QMUIRoundButton的paddingStart获取不了值,其父类QMUIAlphaButton、AppCompatButton、Button就能获取paddingStart的值
val btn1 = view.findViewById<QMUIRoundButton>(R.id.btn_11) val btn2 = view.findViewById<QMUIRoundButton>(R.id.btn_22) Log.d("Krisez", "onCreateView: ${btn1.paddingLeft}") Log.d("Krisez", "onCreateView: ${btn1.paddingStart}") Log.d("Krisez", "onCreateView: ${btn2.paddingLeft}") Log.d("Krisez", "onCreateView: ${btn2.paddingRight}")
The text was updated successfully, but these errors were encountered:
<style name="QMUI.RoundButton" parent="@style/Button.Compat"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> <!--<item name="android:padding">0dp</item>--><!-- 不用 android:padding,而用各个方向分别指定 padding,方便子类覆盖 --> <item name="android:paddingLeft">0dp</item> <item name="android:paddingRight">0dp</item> <item name="android:paddingTop">0dp</item> <item name="android:paddingBottom">0dp</item> <item name="android:minWidth">0dp</item> <item name="android:minHeight">0dp</item> <item name="android:singleLine">true</item> <item name="android:gravity">center</item> <item name="android:ellipsize">end</item> <item name="qmui_isRadiusAdjustBounds">true</item> <item name="qmui_backgroundColor">?attr/qmui_skin_support_round_btn_bg_color</item> <item name="qmui_borderWidth">?attr/qmui_round_btn_border_width</item> <item name="qmui_borderColor">?attr/qmui_skin_support_round_btn_border_color</item> <item name="android:textColor">?attr/qmui_skin_support_round_btn_text_color</item> </style>
经反复尝试,将该style里的paddingL/R删去即可正常使用start/end
Sorry, something went wrong.
No branches or pull requests
运行环境
7.5
2.1.0
具体问题描述
在target>30
QMUIRoundButton的paddingStart获取不了值,其父类QMUIAlphaButton、AppCompatButton、Button就能获取paddingStart的值
问题截图
异常日志(堆栈)
The text was updated successfully, but these errors were encountered: