aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-01 11:26:32 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-01 11:26:32 +0000
commit095dd30f710c71d1ee8f33403feca0861c139687 (patch)
treedec3f4847673f566bce483c7e072c2759e027224 /app/src
parentb1fe0510232a31cefe0aeb1c17e4d369571cf797 (diff)
downloadinfinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar.gz
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar.bz2
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar.lz
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar.xz
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.tar.zst
infinity-for-reddit-095dd30f710c71d1ee8f33403feca0861c139687.zip
Still prepare to support multiple themes.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewUserDetailActivity.java7
-rw-r--r--app/src/main/res/layout/activity_account_saved_thing.xml6
-rw-r--r--app/src/main/res/layout/activity_search_result.xml6
-rw-r--r--app/src/main/res/layout/activity_subscribed_thing_listing.xml6
4 files changed, 9 insertions, 16 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewUserDetailActivity.java
index 6a76dad8..a71b2c71 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewUserDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewUserDetailActivity.java
@@ -190,13 +190,6 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
Resources resources = getResources();
- //Get status bar height
- int statusBarHeight = 0;
- int resourceId = resources.getIdentifier("status_bar_height", "dimen", "android");
- if (resourceId > 0) {
- statusBarHeight = resources.getDimensionPixelSize(resourceId);
- }
-
adjustToolbar(toolbar);
String title = "u/" + username;
diff --git a/app/src/main/res/layout/activity_account_saved_thing.xml b/app/src/main/res/layout/activity_account_saved_thing.xml
index 2c7e36ea..5da65dd9 100644
--- a/app/src/main/res/layout/activity_account_saved_thing.xml
+++ b/app/src/main/res/layout/activity_account_saved_thing.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/activity_search_result.xml b/app/src/main/res/layout/activity_search_result.xml
index 4ff4fbd9..ecf52a61 100644
--- a/app/src/main/res/layout/activity_search_result.xml
+++ b/app/src/main/res/layout/activity_search_result.xml
@@ -36,10 +36,10 @@
app:layout_scrollFlags="scroll|enterAlways"
app:tabGravity="fill"
app:tabMode="fixed"
- app:tabIndicatorColor="@android:color/white"
+ app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
app:tabIndicatorHeight="3dp"
- app:tabSelectedTextColor="@android:color/white"
- app:tabTextColor="@android:color/white"
+ app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
+ app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
app:tabRippleColor="?attr/colorControlHighlight"
app:tabUnboundedRipple="false"/>
diff --git a/app/src/main/res/layout/activity_subscribed_thing_listing.xml b/app/src/main/res/layout/activity_subscribed_thing_listing.xml
index 9cab7222..656d2b15 100644
--- a/app/src/main/res/layout/activity_subscribed_thing_listing.xml
+++ b/app/src/main/res/layout/activity_subscribed_thing_listing.xml
@@ -39,10 +39,10 @@
app:layout_scrollFlags="scroll|enterAlways"
app:tabGravity="fill"
app:tabMode="fixed"
- app:tabIndicatorColor="@android:color/white"
+ app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
app:tabIndicatorHeight="3dp"
- app:tabSelectedTextColor="@android:color/white"
- app:tabTextColor="@android:color/white"
+ app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
+ app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
app:tabRippleColor="?attr/colorControlHighlight"
app:tabUnboundedRipple="false" />