Increase click target of switch item

bug: 30279241
Test: Manually tested and verified that switch item has more space on
its left and click target expanded height wise as well.

Change-Id: Idfe64774a789bbfbd9bbdd05ee70ad58280ea4b0
This commit is contained in:
Ajay Nadathur 2016-12-05 15:54:46 -08:00
parent 3ab5f2f3d5
commit 10b7eaad46
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>