From 24f5682bf800d1fcd71e65f827e619ea89d1bf0c Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 10 Nov 2021 21:25:32 +0800 Subject: Some UI tweaks. --- app/src/main/res/layout/activity_edit_profile.xml | 80 +++++++++++------------ app/src/main/res/layout/activity_post_gallery.xml | 22 ++----- app/src/main/res/layout/activity_post_image.xml | 22 ++----- app/src/main/res/layout/activity_post_link.xml | 22 ++----- app/src/main/res/layout/activity_post_text.xml | 22 ++----- app/src/main/res/layout/activity_post_video.xml | 32 ++++----- app/src/main/res/menu/edit_profile_activity.xml | 2 +- app/src/main/res/values/strings.xml | 5 +- 8 files changed, 74 insertions(+), 133 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_edit_profile.xml b/app/src/main/res/layout/activity_edit_profile.xml index 453ad5c4..47d6aba3 100644 --- a/app/src/main/res/layout/activity_edit_profile.xml +++ b/app/src/main/res/layout/activity_edit_profile.xml @@ -13,14 +13,23 @@ android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> - + android:layout_height="match_parent" + app:layout_scrollFlags="scroll|enterAlways" + app:titleEnabled="false" + app:toolbarId="@+id/toolbar_post_text_activity"> + + + + @@ -42,14 +51,12 @@ + android:layout_height="wrap_content"> - @@ -68,17 +75,16 @@ - - - + android:orientation="vertical"> @@ -120,20 +121,19 @@ android:id="@+id/edit_text_display_name_edit_profile_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:padding="16dp" android:gravity="top" + android:background="#00000000" android:hint="@string/display_name_hint" android:importantForAutofill="no" android:inputType="textCapSentences" - android:lines="1" - android:maxLength="30" - android:maxLines="1" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingBottom="16dp" /> + android:maxLength="30" /> @@ -141,13 +141,14 @@ + android:orientation="vertical"> @@ -156,16 +157,13 @@ android:id="@+id/edit_text_about_you_edit_profile_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:padding="16dp" android:gravity="top" + android:background="#00000000" android:hint="@string/about_you_hint" android:importantForAutofill="no" android:inputType="textCapSentences|textMultiLine" - android:lines="4" - android:maxLength="200" - android:maxLines="4" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:paddingBottom="16dp" /> + android:maxLength="200" /> diff --git a/app/src/main/res/layout/activity_post_gallery.xml b/app/src/main/res/layout/activity_post_gallery.xml index b66d0c34..66fd39ac 100644 --- a/app/src/main/res/layout/activity_post_gallery.xml +++ b/app/src/main/res/layout/activity_post_gallery.xml @@ -73,10 +73,10 @@ - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - - + android:layout_height="wrap_content" /> - - + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/menu/edit_profile_activity.xml b/app/src/main/res/menu/edit_profile_activity.xml index fe96ba20..4d5ec31d 100644 --- a/app/src/main/res/menu/edit_profile_activity.xml +++ b/app/src/main/res/menu/edit_profile_activity.xml @@ -6,6 +6,6 @@ android:id="@+id/action_save_edit_profile_activity" android:orderInCategory="1" android:title="@string/action_save" - android:icon="@drawable/ic_save_to_database_24dp" + android:icon="@drawable/ic_check_circle_toolbar_24dp" app:showAsAction="ifRoom" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3b8753e8..9d2f509e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -43,6 +43,7 @@ Gallery Post Trending Wiki + Edit Profile Open navigation drawer Close navigation drawer @@ -1226,9 +1227,9 @@ Remove Banner Display Name Show on your profile page - This will be displayed to viewer of your profile page and does not change your username + This will be displayed to viewers of your profile page and does not change your username. About You - A little description of your self + A little description of yourself Success remove Avatar Failed remove Avatar %s Success remove Banner -- cgit v1.2.3