mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-03-28 04:15:29 +01:00
Still prepare to support multiple themes.
This commit is contained in:
parent
b1fe051023
commit
095dd30f71
@ -190,13 +190,6 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
|
|
||||||
Resources resources = getResources();
|
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);
|
adjustToolbar(toolbar);
|
||||||
|
|
||||||
String title = "u/" + username;
|
String title = "u/" + username;
|
||||||
|
@ -40,12 +40,12 @@
|
|||||||
android:background="?attr/toolbarAndTabBackgroundColor"
|
android:background="?attr/toolbarAndTabBackgroundColor"
|
||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways"
|
||||||
app:tabGravity="fill"
|
app:tabGravity="fill"
|
||||||
app:tabIndicatorColor="@android:color/white"
|
app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
|
||||||
app:tabIndicatorHeight="3dp"
|
app:tabIndicatorHeight="3dp"
|
||||||
app:tabMode="fixed"
|
app:tabMode="fixed"
|
||||||
app:tabRippleColor="?attr/colorControlHighlight"
|
app:tabRippleColor="?attr/colorControlHighlight"
|
||||||
app:tabSelectedTextColor="@android:color/white"
|
app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabTextColor="@android:color/white"
|
app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabUnboundedRipple="false" />
|
app:tabUnboundedRipple="false" />
|
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
@ -36,10 +36,10 @@
|
|||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways"
|
||||||
app:tabGravity="fill"
|
app:tabGravity="fill"
|
||||||
app:tabMode="fixed"
|
app:tabMode="fixed"
|
||||||
app:tabIndicatorColor="@android:color/white"
|
app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
|
||||||
app:tabIndicatorHeight="3dp"
|
app:tabIndicatorHeight="3dp"
|
||||||
app:tabSelectedTextColor="@android:color/white"
|
app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabTextColor="@android:color/white"
|
app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabRippleColor="?attr/colorControlHighlight"
|
app:tabRippleColor="?attr/colorControlHighlight"
|
||||||
app:tabUnboundedRipple="false"/>
|
app:tabUnboundedRipple="false"/>
|
||||||
|
|
||||||
|
@ -39,10 +39,10 @@
|
|||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways"
|
||||||
app:tabGravity="fill"
|
app:tabGravity="fill"
|
||||||
app:tabMode="fixed"
|
app:tabMode="fixed"
|
||||||
app:tabIndicatorColor="@android:color/white"
|
app:tabIndicatorColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTabIndicator"
|
||||||
app:tabIndicatorHeight="3dp"
|
app:tabIndicatorHeight="3dp"
|
||||||
app:tabSelectedTextColor="@android:color/white"
|
app:tabSelectedTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabTextColor="@android:color/white"
|
app:tabTextColor="?attr/tabLayoutWithCollapsedCollapsingToolbarTextColor"
|
||||||
app:tabRippleColor="?attr/colorControlHighlight"
|
app:tabRippleColor="?attr/colorControlHighlight"
|
||||||
app:tabUnboundedRipple="false" />
|
app:tabUnboundedRipple="false" />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user