From 8ad298e0aa1db944440878cd96dd88acb08bd965 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Thu, 4 Feb 2016 19:15:21 +0300 Subject: [PATCH] [android] Auth fragments with profile --- android/AndroidManifest.xml | 9 + android/res/drawable/circle_accent.xml | 6 + android/res/drawable/circle_accent_night.xml | 6 + android/res/layout/fragment_auth_editor.xml | 197 +++++++++++------- android/res/layout/fragment_osm_login.xml | 2 +- android/res/layout/item_osm_edits.xml | 71 +++++++ android/res/values/donottranslate.xml | 1 + android/res/values/styles-text.xml | 4 + android/res/values/themes-attrs.xml | 1 + android/res/values/themes-base.xml | 2 + android/res/xml-v21/prefs_misc.xml | 4 + android/res/xml/prefs_misc.xml | 4 + .../src/com/mapswithme/maps/MwmActivity.java | 2 +- .../maps/base/BaseMwmFragmentActivity.java | 3 +- .../mapswithme/maps/editor/AuthFragment.java | 103 ++------- .../maps/editor/BaseAuthFragment.java | 26 +++ .../maps/editor/OsmAuthFragment.java | 135 +----------- .../com/mapswithme/maps/editor/OsmOAuth.java | 4 +- .../maps/editor/ProfileActivity.java | 14 ++ .../maps/editor/ProfileFragment.java | 78 +++++++ .../maps/settings/MiscPrefsFragment.java | 11 + 21 files changed, 383 insertions(+), 300 deletions(-) create mode 100644 android/res/drawable/circle_accent.xml create mode 100644 android/res/drawable/circle_accent_night.xml create mode 100644 android/res/layout/item_osm_edits.xml create mode 100644 android/src/com/mapswithme/maps/editor/BaseAuthFragment.java create mode 100644 android/src/com/mapswithme/maps/editor/ProfileActivity.java create mode 100644 android/src/com/mapswithme/maps/editor/ProfileFragment.java diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 7ef7bb0d70..01464d2c5d 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -240,6 +240,15 @@ android:value="com.mapswithme.maps.MwmActivity"/> + + + + + + + + \ No newline at end of file diff --git a/android/res/drawable/circle_accent_night.xml b/android/res/drawable/circle_accent_night.xml new file mode 100644 index 0000000000..eec2d0e8f6 --- /dev/null +++ b/android/res/drawable/circle_accent_night.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/android/res/layout/fragment_auth_editor.xml b/android/res/layout/fragment_auth_editor.xml index 76a3870153..71bc5db63d 100644 --- a/android/res/layout/fragment_auth_editor.xml +++ b/android/res/layout/fragment_auth_editor.xml @@ -11,15 +11,27 @@ style="@style/MwmWidget.ToolbarStyle" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="@color/bg_cards" + android:background="?colorPrimary" android:gravity="end|center_vertical" - android:theme="@style/MwmWidget.ToolbarTheme.Light" - tools:ignore="UnusedAttribute"/> + android:theme="@style/MwmWidget.ToolbarTheme" + tools:ignore="UnusedAttribute"> + + + + @@ -30,88 +42,111 @@ android:padding="@dimen/margin_base" tools:ignore="ScrollViewSize"> -