Fix checkboxes pre 17

This commit is contained in:
Victor Shcherb 2015-05-05 02:19:41 +02:00
parent 1e886dd70f
commit 864607feda
3 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="checkbox_padding">0dp</dimen>
</resources>

View file

@ -83,5 +83,5 @@
<!-- Dialog button bar height -->
<dimen name="abc_alert_dialog_button_bar_height">48dp</dimen>
<dimen name="checkbox_padding">12dp</dimen>
</resources>

View file

@ -14,7 +14,7 @@
limitations under the License.
-->
<resources>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Like in themes_base.xml, the namespace "Base.AppCompat.*" is used to
define base styles for the platform version. The "*.AppCompat"
@ -372,6 +372,8 @@
<style name="Base.Widget.AppCompat.CompoundButton.CheckBox" parent="android:Widget.CompoundButton.CheckBox">
<item name="android:button">?android:attr/listChoiceIndicatorMultiple</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
<item name="android:paddingLeft">@dimen/checkbox_padding</item>
<item name="android:paddingRight">@dimen/checkbox_padding</item>
</style>
<style name="Base.Widget.AppCompat.CompoundButton.RadioButton" parent="android:Widget.CompoundButton.RadioButton">