From fd3e71ce6189fe20ccff5502fe1f079e5d18ec08 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 4 Jul 2018 19:21:10 +0300 Subject: [PATCH 01/15] improve login dialogs ui --- .../res/drawable/bg_pattern_light_xml.xml | 4 + .../res/drawable/no_telegram_btn_bg.xml | 10 + OsmAnd-telegram/res/layout/login_dialog.xml | 213 ++++++++++++------ OsmAnd-telegram/res/values/dimens.xml | 8 +- OsmAnd-telegram/res/values/strings.xml | 4 + OsmAnd-telegram/res/values/styles.xml | 1 + .../osmand/telegram/ui/LoginDialogFragment.kt | 49 +++- 7 files changed, 216 insertions(+), 73 deletions(-) create mode 100644 OsmAnd-telegram/res/drawable/bg_pattern_light_xml.xml create mode 100644 OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml diff --git a/OsmAnd-telegram/res/drawable/bg_pattern_light_xml.xml b/OsmAnd-telegram/res/drawable/bg_pattern_light_xml.xml new file mode 100644 index 0000000000..8779987a4b --- /dev/null +++ b/OsmAnd-telegram/res/drawable/bg_pattern_light_xml.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml b/OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml new file mode 100644 index 0000000000..43fecebf91 --- /dev/null +++ b/OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/OsmAnd-telegram/res/layout/login_dialog.xml b/OsmAnd-telegram/res/layout/login_dialog.xml index ddf957149f..21717e9804 100644 --- a/OsmAnd-telegram/res/layout/login_dialog.xml +++ b/OsmAnd-telegram/res/layout/login_dialog.xml @@ -6,62 +6,81 @@ android:layout_height="match_parent" android:orientation="vertical"> - + android:visibility="visible" + tools:visibility="gone"> - - - - - - - - -