aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_post_image.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-04-17 10:08:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-04-17 10:08:30 +0000
commit372acf4cf45a0420998cba31683b3e66844d3a1e (patch)
tree1253491761ce8f6acaacacc35f7d72e6e8178a76 /app/src/main/res/layout/activity_post_image.xml
parentea779ff74be39ed58589c423035d787764fcb271 (diff)
downloadinfinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar.gz
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar.bz2
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar.lz
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar.xz
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.tar.zst
infinity-for-reddit-372acf4cf45a0420998cba31683b3e66844d3a1e.zip
Fix white theme issues. Remove CollapsingToolbarLayout in some activities.
Diffstat (limited to 'app/src/main/res/layout/activity_post_image.xml')
-rw-r--r--app/src/main/res/layout/activity_post_image.xml53
1 files changed, 22 insertions, 31 deletions
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 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/coordinator_layout_post_image_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:id="@+id/coordinator_layout_post_image_activity"
android:background="?attr/backgroundColor"
tools:application=".PostImageActivity">
@@ -15,21 +15,12 @@
android:background="?attr/toolbarAndTabBackgroundColor"
android:theme="@style/AppTheme.AppBarOverlay">
- <com.google.android.material.appbar.CollapsingToolbarLayout
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_post_image_activity"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_scrollFlags="scroll|enterAlways"
- app:titleEnabled="false"
- app:toolbarId="@+id/toolbar_post_image_activity">
-
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar_post_image_activity"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:popupTheme="@style/AppTheme.PopupOverlay"
- app:navigationIcon="?attr/homeAsUpIndicator" />
-
- </com.google.android.material.appbar.CollapsingToolbarLayout>
+ android:layout_height="?attr/actionBarSize"
+ app:navigationIcon="?attr/homeAsUpIndicator"
+ app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
@@ -46,10 +37,10 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingTop="8dp"
- android:paddingBottom="8dp"
android:paddingStart="16dp"
- android:paddingEnd="16dp">
+ android:paddingTop="8dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="8dp">
<pl.droidsonroids.gif.GifImageView
android:id="@+id/subreddit_icon_gif_image_view_post_image_activity"
@@ -62,11 +53,11 @@
android:id="@+id/subreddit_name_text_view_post_image_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_toStartOf="@id/rules_button_post_image_activity"
- android:layout_toEndOf="@id/subreddit_icon_gif_image_view_post_image_activity"
android:layout_centerVertical="true"
android:layout_marginStart="32dp"
android:layout_marginEnd="16dp"
+ android:layout_toStartOf="@id/rules_button_post_image_activity"
+ android:layout_toEndOf="@id/subreddit_icon_gif_image_view_post_image_activity"
android:text="@string/choose_a_subreddit"
android:textSize="?attr/font_default" />
@@ -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" />
<View
android:id="@+id/divider_3_post_image_activity"
@@ -172,12 +163,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_outline_add_a_photo_24dp"
- app:layout_constraintTop_toTopOf="parent"
+ app:backgroundTint="?attr/colorPrimaryLightTheme"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_image_activity"
app:layout_constraintHorizontal_chainStyle="spread"
- app:backgroundTint="?attr/colorPrimaryLightTheme"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
app:tint="@android:color/white" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
@@ -185,12 +176,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_outline_select_photo_24dp"
- app:layout_constraintTop_toTopOf="parent"
+ app:backgroundTint="?attr/colorPrimaryLightTheme"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toEndOf="@+id/capture_fab_post_image_activity"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_chainStyle="spread"
- app:backgroundTint="?attr/colorPrimaryLightTheme"
+ app:layout_constraintStart_toEndOf="@+id/capture_fab_post_image_activity"
+ app:layout_constraintTop_toTopOf="parent"
app:tint="@android:color/white" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -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" />
</LinearLayout>