From a1d6c8e5557a884b3f6bf5330659fee99d5f0329 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Wed, 8 May 2019 17:46:37 +0300 Subject: [PATCH] add base profile selection to edit profile screen --- .../bottom_sheet_select_type_fragment.xml | 13 +- .../res/layout/fragment_selected_profile.xml | 715 ++++++++++-------- .../ProfileBottomSheetDialogFragment.java | 25 +- 3 files changed, 415 insertions(+), 338 deletions(-) diff --git a/OsmAnd/res/layout/bottom_sheet_select_type_fragment.xml b/OsmAnd/res/layout/bottom_sheet_select_type_fragment.xml index 05e259deee..b5b6b1de29 100644 --- a/OsmAnd/res/layout/bottom_sheet_select_type_fragment.xml +++ b/OsmAnd/res/layout/bottom_sheet_select_type_fragment.xml @@ -1,10 +1,11 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + xmlns:tools="http://schemas.android.com/tools" + android:background="?attr/bg_color" + android:orientation="vertical"> diff --git a/OsmAnd/res/layout/fragment_selected_profile.xml b/OsmAnd/res/layout/fragment_selected_profile.xml index 409e444cc6..053b5e5ab7 100644 --- a/OsmAnd/res/layout/fragment_selected_profile.xml +++ b/OsmAnd/res/layout/fragment_selected_profile.xml @@ -8,346 +8,419 @@ android:layout_height="match_parent" > - - - + android:layout_gravity="top"> + android:orientation="vertical" + > - + android:layout_height="wrap_content" + android:orientation="vertical" + android:background="?attr/bg_color" + android:foreground="?attr/selectableItemBackground" + android:clickable="true"> + + + + + + + + + + + + + + + + + + + android:background="?attr/bg_color" + android:orientation="vertical"> + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + android:text="You can add own modified version of routing.xml to ..osmand/files/routing/"/> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -356,8 +429,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" - android:orientation="horizontal" - android:background="?attr/bg_color"> + android:background="?attr/bg_color" + android:orientation="horizontal">