Update avatar size/placement for follow requests (#3280)

Use the same icon size/placement as other notifications.

Fixes https://github.com/tuskyapp/Tusky/issues/3279
This commit is contained in:
Nik Clayton 2023-02-20 20:30:32 +01:00 committed by GitHub
parent 6cc79c8d75
commit 15fb8ad43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 14 deletions

View File

@ -28,17 +28,15 @@
<ImageView
android:id="@+id/notification_avatar"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_alignParentStart="true"
android:layout_marginStart="6dp"
android:layout_marginTop="6dp"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentStart="false"
android:layout_marginTop="10dp"
android:contentDescription="@string/action_view_profile"
android:scaleType="centerCrop"
android:textSize="?attr/status_text_medium"
app:layout_constraintBottom_toBottomOf="@id/notification_username"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/notification_display_name"
app:layout_constraintTop_toBottomOf="@+id/notification_text"
tools:src="@drawable/avatar_default" />
<TextView
@ -46,29 +44,26 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorPrimary"
android:textSize="?attr/status_text_medium"
android:textStyle="normal|bold"
app:layout_constraintBottom_toTopOf="@id/notification_username"
app:layout_constraintStart_toEndOf="@id/notification_avatar"
app:layout_constraintTop_toBottomOf="@id/notification_text"
app:layout_constraintVertical_chainStyle="packed"
app:layout_constraintTop_toBottomOf="@+id/notification_text"
tools:text="Test User" />
<TextView
android:id="@+id/notification_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="?attr/status_text_medium"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/notification_avatar"
app:layout_constraintStart_toStartOf="@+id/notification_display_name"
app:layout_constraintTop_toBottomOf="@id/notification_display_name"
tools:text="\@testuser" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>