Header more visible

This commit is contained in:
Thomas 2022-11-30 16:16:54 +01:00
parent 506f5fcf49
commit 4730f7fb53
2 changed files with 6 additions and 2 deletions

View File

@ -648,6 +648,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
headerMainBinding.accountName.setText(currentAccount.mastodon_account.display_name);
Helper.loadPP(BaseMainActivity.this, headerMainBinding.accountProfilePicture, currentAccount, false);
MastodonHelper.loadProfileMediaMastodon(BaseMainActivity.this, headerMainBinding.backgroundImage, currentAccount.mastodon_account, MastodonHelper.MediaAccountType.HEADER);
headerMainBinding.backgroundImage.setAlpha(0.5f);
/*
* Some general data are loaded when the app starts such;
* - Pinned timelines (in app feature)

View File

@ -54,7 +54,8 @@
android:layout_marginTop="10dp"
android:orientation="horizontal">
<TextView
<androidx.appcompat.widget.AppCompatTextView
style="@style/TextAppearance.Material3.TitleMedium"
android:id="@+id/account_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -83,8 +84,10 @@
android:layout_marginTop="10dp"
android:orientation="horizontal">
<TextView
<androidx.appcompat.widget.AppCompatTextView
style="@style/TextAppearance.Material3.TitleSmall"
android:id="@+id/account_acc"
tools:text="@tools:sample/full_names"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"