This commit is contained in:
Alex Sytnyk 2018-07-16 17:41:36 +03:00
parent 51e0d34707
commit 1ad3b0b7d5
2 changed files with 66 additions and 54 deletions

View file

@ -2,9 +2,9 @@
<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="@dimen/grid_menu_item_width" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackgroundBorderless"
android:orientation="vertical" android:orientation="vertical"
android:paddingLeft="@dimen/bottom_sheet_content_padding_small" android:paddingLeft="@dimen/bottom_sheet_content_padding_small"
android:paddingRight="@dimen/bottom_sheet_content_padding_small" android:paddingRight="@dimen/bottom_sheet_content_padding_small"
@ -15,9 +15,8 @@
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_gravity="center_horizontal"
android:layout_marginBottom="@dimen/grid_menu_item_bottom_top_margin" android:layout_marginBottom="@dimen/grid_menu_item_bottom_top_margin"
android:layout_marginLeft="@dimen/grid_menu_item_sides_margin"
android:layout_marginRight="@dimen/grid_menu_item_sides_margin"
android:layout_marginTop="@dimen/grid_menu_item_bottom_top_margin" 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"/>

View file

@ -5,29 +5,42 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="@dimen/bottom_sheet_content_padding_small"> android:paddingTop="@dimen/bottom_sheet_content_padding_small">
<Space
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.25"/>
<FrameLayout <FrameLayout
android:id="@+id/first_item_container" android:id="@+id/first_item_container"
android:layout_width="@dimen/grid_menu_item_width" android:layout_width="0dp"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:layout_weight="3"/>
<Space <Space
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"/> android:layout_weight="0.5"/>
<FrameLayout <FrameLayout
android:id="@+id/second_item_container" android:id="@+id/second_item_container"
android:layout_width="@dimen/grid_menu_item_width" android:layout_width="0dp"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:layout_weight="3"/>
<Space <Space
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"/> android:layout_weight="0.5"/>
<FrameLayout <FrameLayout
android:id="@+id/third_item_container" android:id="@+id/third_item_container"
android:layout_width="@dimen/grid_menu_item_width" android:layout_width="0dp"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:layout_weight="3"/>
<Space
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.25"/>
</LinearLayout> </LinearLayout>