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

@ -1,36 +1,35 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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"
tools:background="#17171A" tools:background="#17171A"
tools:layout_gravity="center"> tools:layout_gravity="center">
<ImageView <ImageView
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="@dimen/grid_menu_item_bottom_top_margin" android:layout_gravity="center_horizontal"
android:layout_marginLeft="@dimen/grid_menu_item_sides_margin" android:layout_marginBottom="@dimen/grid_menu_item_bottom_top_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"/>
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:lines="2" android:lines="2"
android:maxLines="2" android:maxLines="2"
android:textColor="@color/searchbar_text_hint_light" android:textColor="@color/searchbar_text_hint_light"
tools:text="Remove POI"/> tools:text="Remove POI"/>
</LinearLayout> </LinearLayout>

View file

@ -1,33 +1,46 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
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="@dimen/bottom_sheet_content_padding_small"> android:paddingTop="@dimen/bottom_sheet_content_padding_small">
<FrameLayout <Space
android:id="@+id/first_item_container" android:layout_width="0dp"
android:layout_width="@dimen/grid_menu_item_width" android:layout_height="match_parent"
android:layout_height="wrap_content"/> android:layout_weight="0.25"/>
<Space <FrameLayout
android:layout_width="0dp" android:id="@+id/first_item_container"
android:layout_height="match_parent" android:layout_width="0dp"
android:layout_weight="1"/> android:layout_height="wrap_content"
android:layout_weight="3"/>
<FrameLayout <Space
android:id="@+id/second_item_container" android:layout_width="0dp"
android:layout_width="@dimen/grid_menu_item_width" android:layout_height="match_parent"
android:layout_height="wrap_content"/> android:layout_weight="0.5"/>
<Space <FrameLayout
android:layout_width="0dp" android:id="@+id/second_item_container"
android:layout_height="match_parent" android:layout_width="0dp"
android:layout_weight="1"/> android:layout_height="wrap_content"
android:layout_weight="3"/>
<FrameLayout <Space
android:id="@+id/third_item_container" android:layout_width="0dp"
android:layout_width="@dimen/grid_menu_item_width" android:layout_height="match_parent"
android:layout_height="wrap_content"/> android:layout_weight="0.5"/>
<FrameLayout
android:id="@+id/third_item_container"
android:layout_width="0dp"
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>