Merge "Increase click target of switch item"

This commit is contained in:
Ajay Kumar Nadathur Sreenivasan 2016-12-08 22:13:01 +00:00 committed by Android (Google) Code Review
commit e57bdc10c8
3 changed files with 12 additions and 1 deletions

View file

@ -68,8 +68,9 @@
<android.support.v7.widget.SwitchCompat
android:id="@+id/suw_items_switch"
style="@style/SuwSwitchStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical" />
</LinearLayout>

View file

@ -146,6 +146,13 @@
<item name="android:textAppearance">?attr/textAppearanceListItemSmall</item>
</style>
<style name="SuwSwitchStyle">
<item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_switch_padding_end</item>
<item name="android:paddingLeft">@dimen/suw_switch_padding_start</item>
<item name="android:paddingRight">@dimen/suw_switch_padding_end</item>
<item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_switch_padding_start</item>
</style>
<!-- Button styles -->
<style name="SuwButtonItem" />

View file

@ -119,4 +119,7 @@
<dimen name="suw_progress_bar_margin_vertical">-7dp</dimen>
<dimen name="suw_glif_progress_bar_margin_vertical">7dp</dimen>
<dimen name="suw_switch_padding_start">16dp</dimen>
<dimen name="suw_switch_padding_end">0dp</dimen>
</resources>