Fix issue #1128 - Move QR code to header

This commit is contained in:
Thomas 2025-03-05 17:42:46 +01:00
parent 592be1f057
commit 325fbf8f5f

View file

@ -50,15 +50,37 @@
android:layout_margin="6dp"
app:cardElevation="4dp"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/banner_pp"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/profile_banner"
android:scaleType="centerCrop"
android:src="@drawable/default_banner"
tools:src="@tools:sample/backgrounds/scenic" />
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/banner_pp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/profile_banner"
android:scaleType="centerCrop"
android:src="@drawable/default_banner"
tools:src="@tools:sample/backgrounds/scenic" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qr_code_generator"
style="@style/Widget.Material3.Button.ElevatedButton"
android:layout_width="48dp"
android:layout_height="36dp"
app:iconGravity="textStart"
app:iconPadding="0dp"
android:contentDescription="@string/qr_code_generator"
android:scaleType="fitCenter"
android:visibility="gone"
android:layout_marginEnd="10dp"
android:layout_marginBottom="5dp"
app:icon="@drawable/baseline_qr_code_24"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
tools:visibility="visible" />
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>
@ -140,22 +162,7 @@
app:layout_constraintStart_toStartOf="@id/banner_container"
app:layout_constraintTop_toBottomOf="@id/avatar_container"
tools:text="@tools:sample/first_names" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qr_code_generator"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginStart="10dp"
app:iconGravity="textStart"
app:iconPadding="0dp"
android:contentDescription="@string/qr_code_generator"
android:scaleType="fitCenter"
android:visibility="gone"
app:icon="@drawable/baseline_qr_code_24"
app:layout_constraintStart_toEndOf="@id/account_dn"
app:layout_constraintTop_toTopOf="@id/account_dn"
app:layout_constraintBottom_toBottomOf="@+id/account_dn"
tools:visibility="visible" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/account_un_container"
android:layout_width="wrap_content"