From 372acf4cf45a0420998cba31683b3e66844d3a1e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 17 Apr 2020 18:08:30 +0800 Subject: Fix white theme issues. Remove CollapsingToolbarLayout in some activities. --- app/src/main/res/layout/activity_comment.xml | 35 ++++++--------- app/src/main/res/layout/activity_edit_comment.xml | 27 ++++-------- app/src/main/res/layout/activity_post_image.xml | 53 ++++++++++------------- app/src/main/res/layout/activity_post_link.xml | 47 ++++++++------------ app/src/main/res/layout/activity_post_text.xml | 49 +++++++++------------ app/src/main/res/layout/activity_post_video.xml | 51 +++++++++------------- 6 files changed, 104 insertions(+), 158 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml index 09d5ab34..a9af4118 100644 --- a/app/src/main/res/layout/activity_comment.xml +++ b/app/src/main/res/layout/activity_comment.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -55,9 +46,9 @@ android:id="@+id/content_markdown_view_comment_activity" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:layout_marginBottom="16dp" android:visibility="gone" /> + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:paddingBottom="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/content_font_18" /> diff --git a/app/src/main/res/layout/activity_edit_comment.xml b/app/src/main/res/layout/activity_edit_comment.xml index 3952770d..0b77fb15 100644 --- a/app/src/main/res/layout/activity_edit_comment.xml +++ b/app/src/main/res/layout/activity_edit_comment.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -37,13 +28,13 @@ android:id="@+id/comment_edit_text_edit_comment_activity" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="#00000000" android:gravity="top" - android:padding="16dp" android:hint="@string/post_text_content_hint" android:inputType="textCapSentences|textMultiLine" - android:textSize="?attr/content_font_18" - android:background="#00000000" + android:padding="16dp" android:textColor="?attr/primaryTextColor" + android:textSize="?attr/content_font_18" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_post_image.xml b/app/src/main/res/layout/activity_post_image.xml index e73a08be..e4a21951 100644 --- a/app/src/main/res/layout/activity_post_image.xml +++ b/app/src/main/res/layout/activity_post_image.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -46,10 +37,10 @@ + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> @@ -147,13 +138,13 @@ android:id="@+id/post_title_edit_text_post_image_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="#00000000" android:gravity="top" - android:padding="16dp" android:hint="@string/post_title_hint" android:inputType="textCapSentences|textMultiLine" - android:textSize="?attr/title_font_18" - android:background="#00000000" - android:textColor="?attr/primaryTextColor" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/title_font_18" /> @@ -209,8 +200,8 @@ android:id="@+id/image_view_post_image_activity" android:layout_width="match_parent" android:layout_height="wrap_content" - android:scaleType="fitStart" android:adjustViewBounds="true" + android:scaleType="fitStart" android:visibility="gone" /> diff --git a/app/src/main/res/layout/activity_post_link.xml b/app/src/main/res/layout/activity_post_link.xml index 7998c1d6..4b7ba671 100644 --- a/app/src/main/res/layout/activity_post_link.xml +++ b/app/src/main/res/layout/activity_post_link.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -46,10 +37,10 @@ + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> @@ -147,13 +138,13 @@ android:id="@+id/post_title_edit_text_post_link_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="#00000000" android:gravity="top" - android:padding="16dp" android:hint="@string/post_title_hint" android:inputType="textCapSentences|textMultiLine" - android:textSize="?attr/title_font_18" - android:background="#00000000" - android:textColor="?attr/primaryTextColor" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/title_font_18" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/content_font_18" /> diff --git a/app/src/main/res/layout/activity_post_text.xml b/app/src/main/res/layout/activity_post_text.xml index 4109c150..b4a7fb4a 100644 --- a/app/src/main/res/layout/activity_post_text.xml +++ b/app/src/main/res/layout/activity_post_text.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -46,10 +37,10 @@ + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> @@ -87,7 +78,7 @@ android:layout_width="match_parent" android:layout_height="1dp" android:background="?attr/dividerColor" /> - + @@ -147,13 +138,13 @@ android:id="@+id/post_title_edit_text_post_text_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="#00000000" android:gravity="top" - android:padding="16dp" android:hint="@string/post_title_hint" android:inputType="textCapSentences|textMultiLine" - android:textSize="?attr/title_font_18" - android:background="#00000000" - android:textColor="?attr/primaryTextColor" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/title_font_18" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/content_font_18" /> diff --git a/app/src/main/res/layout/activity_post_video.xml b/app/src/main/res/layout/activity_post_video.xml index 2b322dcf..ebebe237 100644 --- a/app/src/main/res/layout/activity_post_video.xml +++ b/app/src/main/res/layout/activity_post_video.xml @@ -2,9 +2,9 @@ @@ -15,21 +15,12 @@ android:background="?attr/toolbarAndTabBackgroundColor" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="?attr/actionBarSize" + app:navigationIcon="?attr/homeAsUpIndicator" + app:popupTheme="@style/AppTheme.PopupOverlay" /> @@ -46,10 +37,10 @@ + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> @@ -147,13 +138,13 @@ android:id="@+id/post_title_edit_text_post_video_activity" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="#00000000" android:gravity="top" - android:padding="16dp" android:hint="@string/post_title_hint" android:inputType="textCapSentences|textMultiLine" - android:textSize="?attr/title_font_18" - android:background="#00000000" - android:textColor="?attr/primaryTextColor" /> + android:padding="16dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/title_font_18" /> -- cgit v1.2.3