made swipe handle more unified and smaller across various screen sizes

This commit is contained in:
Daniel Gultsch 2017-03-04 15:07:25 +01:00
parent cb203f5fd3
commit b86dd584dc
6 changed files with 7 additions and 10 deletions

View File

@ -5,7 +5,8 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/conversations_overview_width"
android:layout_width="match_parent"
android:layout_marginRight="@dimen/swipe_handle_size"
android:layout_height="match_parent"
android:background="?attr/color_background_primary"
android:orientation="vertical" >

View File

@ -1,3 +0,0 @@
<resources>
<dimen name="conversations_overview_width">276dp</dimen>
</resources>

View File

@ -1,3 +0,0 @@
<resources>
<dimen name="conversations_overview_width">304dp</dimen>
</resources>

View File

@ -1,4 +1,6 @@
<resources>
<dimen name="conversations_overview_width">336dp</dimen>
<!-- 384dp is the screen width of the Nexus 4. Something like a Moto G is smaller but a Nexus 5X is larger -->
<!-- https://material.io/devices/ -->
<dimen name="fineprint_size">12sp</dimen>
<dimen name="swipe_handle_size">48dp</dimen>
</resources>

View File

@ -1,4 +1,4 @@
<resources>
<dimen name="conversations_overview_width">416dp</dimen>
<dimen name="activity_horizontal_margin">32dp</dimen>
<dimen name="swipe_handle_size">72dp</dimen>
</resources>

View File

@ -3,8 +3,8 @@
<dimen name="activity_horizontal_margin">8dp</dimen>
<dimen name="activity_vertical_margin">8dp</dimen>
<dimen name="infocard_padding">16dp</dimen>
<dimen name="conversations_overview_width">288dp</dimen>
<dimen name="image_button_padding">8dp</dimen>
<dimen name="fineprint_size">11sp</dimen>
<dimen name="menu_item_icon_size">24dp</dimen>
<dimen name="swipe_handle_size">24dp</dimen>
</resources>