aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-01 01:42:57 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-01 01:42:57 +0000
commit152a6a280ace51a09ed55fe1e57c2f9168a59c95 (patch)
tree2b9486cb4b1e1d41041285a2fd3323b21af10902 /app/src/main/res/layout
parente528158f03f1fb26b75a99180cfd2dac8de96222 (diff)
downloadinfinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar.gz
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar.bz2
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar.lz
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar.xz
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.tar.zst
infinity-for-reddit-152a6a280ace51a09ed55fe1e57c2f9168a59c95.zip
Still prepare to support multiple themes.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/app_bar_main.xml6
-rw-r--r--app/src/main/res/layout/item_post.xml8
2 files changed, 7 insertions, 7 deletions
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml
index 88de7dcf..cc63287c 100644
--- a/app/src/main/res/layout/app_bar_main.xml
+++ b/app/src/main/res/layout/app_bar_main.xml
@@ -40,12 +40,12 @@
android:background="?attr/toolbarAndTabBackgroundColor"
app:layout_scrollFlags="scroll|enterAlways"
app:tabGravity="fill"
- app:tabIndicatorColor="@android:color/white"
+ app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
app:tabIndicatorHeight="3dp"
app:tabMode="fixed"
app:tabRippleColor="?attr/colorControlHighlight"
- app:tabSelectedTextColor="@android:color/white"
- app:tabTextColor="@android:color/white"
+ app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
+ app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
app:tabUnboundedRipple="false" />
</com.google.android.material.appbar.AppBarLayout>
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml
index 3acff256..335694e0 100644
--- a/app/src/main/res/layout/item_post.xml
+++ b/app/src/main/res/layout/item_post.xml
@@ -30,13 +30,13 @@
app:layout_constraintTop_toTopOf="parent"/>
<TextView
- android:id="@+id/name_text_view_item_post"
+ android:id="@+id/subreddit_name_text_view_item_post"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
- android:textColor="#E91E63"
+ android:textColor="?attr/subreddit"
android:textSize="?attr/font_default"
app:layout_constraintBottom_toTopOf="@id/user_text_view_item_post"
app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_item_post"
@@ -56,7 +56,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post"
app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post"
- app:layout_constraintTop_toBottomOf="@+id/name_text_view_item_post"
+ app:layout_constraintTop_toBottomOf="@+id/subreddit_name_text_view_item_post"
app:layout_constraintHorizontal_bias="0" />
<ImageView
@@ -67,7 +67,7 @@
android:tint="?attr/stickiedPost"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toEndOf="@id/name_text_view_item_post"
+ app:layout_constraintStart_toEndOf="@id/subreddit_name_text_view_item_post"
app:layout_constraintEnd_toStartOf="@+id/guideline2"
app:layout_constraintTop_toTopOf="parent"/>