Extract sizes from layouts to resources
This commit is contained in:
parent
3fb6588ef3
commit
095e4512a0
4 changed files with 18 additions and 11 deletions
|
@ -2,12 +2,12 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="120dp"
|
android:layout_width="@dimen/grid_menu_item_width"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="@dimen/bottom_sheet_content_padding_small"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="@dimen/bottom_sheet_content_padding_small"
|
||||||
tools:background="#17171A"
|
tools:background="#17171A"
|
||||||
tools:layout_gravity="center">
|
tools:layout_gravity="center">
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="@dimen/grid_menu_item_bottom_top_margin"
|
||||||
android:layout_marginLeft="40dp"
|
android:layout_marginLeft="@dimen/grid_menu_item_sides_margin"
|
||||||
android:layout_marginRight="40dp"
|
android:layout_marginRight="@dimen/grid_menu_item_sides_margin"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="@dimen/grid_menu_item_bottom_top_margin"
|
||||||
tools:src="@drawable/ic_action_delete_dark"
|
tools:src="@drawable/ic_action_delete_dark"
|
||||||
tools:tint="#808080"/>
|
tools:tint="#808080"/>
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="8dp">
|
android:paddingTop="@dimen/bottom_sheet_content_padding_small">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/first_item_container"
|
android:id="@+id/first_item_container"
|
||||||
android:layout_width="120dp"
|
android:layout_width="@dimen/grid_menu_item_width"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
<Space
|
<Space
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/second_item_container"
|
android:id="@+id/second_item_container"
|
||||||
android:layout_width="120dp"
|
android:layout_width="@dimen/grid_menu_item_width"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
<Space
|
<Space
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/third_item_container"
|
android:id="@+id/third_item_container"
|
||||||
android:layout_width="120dp"
|
android:layout_width="@dimen/grid_menu_item_width"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -175,4 +175,7 @@
|
||||||
|
|
||||||
<dimen name="multi_selection_header_height">78dp</dimen>
|
<dimen name="multi_selection_header_height">78dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="grid_menu_item_width">180dp</dimen>
|
||||||
|
<dimen name="grid_menu_item_bottom_top_margin">24dp</dimen>
|
||||||
|
<dimen name="grid_menu_item_sides_margin">60dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -247,4 +247,8 @@
|
||||||
<dimen name="route_info_modes_height">48dp</dimen>
|
<dimen name="route_info_modes_height">48dp</dimen>
|
||||||
|
|
||||||
<dimen name="multi_selection_header_height">52dp</dimen>
|
<dimen name="multi_selection_header_height">52dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="grid_menu_item_width">120dp</dimen>
|
||||||
|
<dimen name="grid_menu_item_bottom_top_margin">16dp</dimen>
|
||||||
|
<dimen name="grid_menu_item_sides_margin">40dp</dimen>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue