Fixed misplaced right buttons.
This commit is contained in:
parent
7c3699ae1e
commit
e7e3cabb05
1 changed files with 222 additions and 208 deletions
|
@ -1,8 +1,17 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="bottom"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout 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="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
@ -10,7 +19,7 @@
|
||||||
android:id="@+id/bottom_left_views"
|
android:id="@+id/bottom_left_views"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/move_marker_bottom_sheet"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentLeft="true">
|
android:layout_alignParentLeft="true">
|
||||||
|
|
||||||
<!-- ALARM -->
|
<!-- ALARM -->
|
||||||
|
@ -97,15 +106,21 @@
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
<!-- RIGHT BUTTONS -->
|
<!-- RIGHT BUTTONS -->
|
||||||
|
|
||||||
|
<android.support.v4.widget.Space
|
||||||
|
android:id="@+id/space"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/map_button_margin"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_alignParentRight="true"/>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/map_zoom_out_button"
|
android:id="@+id/map_zoom_out_button"
|
||||||
android:layout_width="@dimen/map_button_size"
|
android:layout_width="@dimen/map_button_size"
|
||||||
android:layout_height="@dimen/map_button_size"
|
android:layout_height="@dimen/map_button_size"
|
||||||
android:layout_alignBottom="@id/bottom_left_views"
|
android:layout_above="@id/space"
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_marginBottom="@dimen/map_button_margin"
|
|
||||||
android:layout_marginRight="@dimen/map_button_margin"
|
android:layout_marginRight="@dimen/map_button_margin"
|
||||||
android:layout_marginTop="@dimen/map_button_margin"
|
android:layout_marginTop="@dimen/map_button_margin"
|
||||||
|
android:layout_toLeftOf="@id/space"
|
||||||
android:background="@drawable/btn_circle"
|
android:background="@drawable/btn_circle"
|
||||||
android:contentDescription="@string/zoomOut"
|
android:contentDescription="@string/zoomOut"
|
||||||
tools:src="@drawable/ic_action_test_light"/>
|
tools:src="@drawable/ic_action_test_light"/>
|
||||||
|
@ -114,8 +129,7 @@
|
||||||
android:id="@+id/map_my_location_button"
|
android:id="@+id/map_my_location_button"
|
||||||
android:layout_width="@dimen/map_button_size"
|
android:layout_width="@dimen/map_button_size"
|
||||||
android:layout_height="@dimen/map_button_size"
|
android:layout_height="@dimen/map_button_size"
|
||||||
android:layout_alignBottom="@id/bottom_left_views"
|
android:layout_alignBottom="@id/map_zoom_out_button"
|
||||||
android:layout_marginBottom="@dimen/map_button_margin"
|
|
||||||
android:layout_marginLeft="@dimen/map_button_spacing_land"
|
android:layout_marginLeft="@dimen/map_button_spacing_land"
|
||||||
android:layout_marginRight="@dimen/map_button_spacing_land"
|
android:layout_marginRight="@dimen/map_button_spacing_land"
|
||||||
android:layout_toLeftOf="@id/map_zoom_out_button"
|
android:layout_toLeftOf="@id/map_zoom_out_button"
|
||||||
|
@ -141,7 +155,8 @@
|
||||||
android:layout_marginBottom="@dimen/map_button_margin"
|
android:layout_marginBottom="@dimen/map_button_margin"
|
||||||
android:layout_toLeftOf="@id/map_my_location_button"
|
android:layout_toLeftOf="@id/map_my_location_button"
|
||||||
android:layout_toRightOf="@id/bottom_left_views"
|
android:layout_toRightOf="@id/bottom_left_views"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
tools:visibility="gone">
|
||||||
|
|
||||||
<!-- RULER -->
|
<!-- RULER -->
|
||||||
|
|
||||||
|
@ -244,11 +259,10 @@
|
||||||
tools:src="@drawable/ic_action_test_light"/>
|
tools:src="@drawable/ic_action_test_light"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/move_marker_bottom_sheet"
|
layout="@layout/move_marker_bottom_sheet"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"/>
|
||||||
android:layout_alignParentBottom="true"/>
|
</LinearLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
|
Loading…
Reference in a new issue