From 4f4e6c7ab5d75ed957cd6370a0bad5b24ad358c1 Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 6 Jul 2018 15:31:59 +0300 Subject: [PATCH] remove keyboard listener and rename resources --- ..._telegram_btn_bg.xml => btn_border_bg.xml} | 2 +- .../res/drawable/btn_round_4dp.xml | 23 - ..._round_purple.xml => btn_round_active.xml} | 10 +- OsmAnd-telegram/res/layout/login_dialog.xml | 429 +++++++++--------- OsmAnd-telegram/res/values/colors.xml | 4 - OsmAnd-telegram/res/values/dimens.xml | 6 +- OsmAnd-telegram/res/values/strings.xml | 2 +- OsmAnd-telegram/res/values/styles.xml | 8 +- .../osmand/telegram/ui/LoginDialogFragment.kt | 80 +--- .../net/osmand/telegram/utils/AndroidUtils.kt | 17 + 10 files changed, 264 insertions(+), 317 deletions(-) rename OsmAnd-telegram/res/drawable/{no_telegram_btn_bg.xml => btn_border_bg.xml} (92%) delete mode 100644 OsmAnd-telegram/res/drawable/btn_round_4dp.xml rename OsmAnd-telegram/res/drawable/{btn_round_purple.xml => btn_round_active.xml} (55%) diff --git a/OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml b/OsmAnd-telegram/res/drawable/btn_border_bg.xml similarity index 92% rename from OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml rename to OsmAnd-telegram/res/drawable/btn_border_bg.xml index 3f3386ea77..ed2c7083c6 100644 --- a/OsmAnd-telegram/res/drawable/no_telegram_btn_bg.xml +++ b/OsmAnd-telegram/res/drawable/btn_border_bg.xml @@ -3,7 +3,7 @@ - + diff --git a/OsmAnd-telegram/res/drawable/btn_round_4dp.xml b/OsmAnd-telegram/res/drawable/btn_round_4dp.xml deleted file mode 100644 index c99ccc2c39..0000000000 --- a/OsmAnd-telegram/res/drawable/btn_round_4dp.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd-telegram/res/drawable/btn_round_purple.xml b/OsmAnd-telegram/res/drawable/btn_round_active.xml similarity index 55% rename from OsmAnd-telegram/res/drawable/btn_round_purple.xml rename to OsmAnd-telegram/res/drawable/btn_round_active.xml index ca6b029eef..71ed302bdc 100644 --- a/OsmAnd-telegram/res/drawable/btn_round_purple.xml +++ b/OsmAnd-telegram/res/drawable/btn_round_active.xml @@ -3,20 +3,20 @@ - - + + - + - - + + diff --git a/OsmAnd-telegram/res/layout/login_dialog.xml b/OsmAnd-telegram/res/layout/login_dialog.xml index 9331508046..f547cb9490 100644 --- a/OsmAnd-telegram/res/layout/login_dialog.xml +++ b/OsmAnd-telegram/res/layout/login_dialog.xml @@ -11,7 +11,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" - android:visibility="visible"> + android:visibility="visible" + tools:visibility="gone"> @@ -79,11 +83,12 @@ android:background="?attr/card_bg_color" android:fitsSystemWindows="true" android:orientation="vertical" - android:visibility="gone"> + android:visibility="gone" + tools:visibility="visible"> @@ -114,258 +119,252 @@ - - + android:layout_height="match_parent" + android:background="@android:color/transparent"> - - - + android:layout_height="match_parent" + android:fillViewport="true"> - - - - - - - - - + android:textSize="@dimen/descr_text_size" + tools:text="@string/already_registered_in_telegram" /> + android:paddingBottom="@dimen/dialog_padding_horizontal"> - + android:background="@drawable/btn_border_bg" + android:gravity="center_vertical" + android:visibility="gone" + tools:visibility="visible"> - + android:layout_marginBottom="@dimen/content_padding_standard" + android:layout_marginLeft="@dimen/content_padding_standard" + android:layout_marginRight="@dimen/content_padding_standard" + android:layout_marginTop="@dimen/content_padding_standard" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:maxLines="2" + android:text="@string/do_not_have_telegram" + android:textColor="?attr/ctrl_active_color" + android:textSize="@dimen/text_button_text_size" + app:typeface="@string/font_roboto_mono_bold" /> - + - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + app:typeface="@string/font_roboto_mono_bold" /> - - - + android:orientation="vertical" + android:visibility="visible"> - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - +