From 2385d102ae9817bfa78d9a45120fe487af92a20c Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 13 Apr 2023 21:42:43 +0200 Subject: [PATCH] fix header username displacement --- .../src/main/res/layout/display_item_header.xml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mastodon/src/main/res/layout/display_item_header.xml b/mastodon/src/main/res/layout/display_item_header.xml index 957afcbb2..b976d7400 100644 --- a/mastodon/src/main/res/layout/display_item_header.xml +++ b/mastodon/src/main/res/layout/display_item_header.xml @@ -3,7 +3,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="13dp" android:paddingEnd="4dp" android:paddingStart="16dp"> @@ -11,6 +10,7 @@ android:id="@+id/more" android:layout_width="36dp" android:layout_height="36dp" + android:layout_marginTop="13dp" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:background="?android:actionBarItemBackground" @@ -23,6 +23,7 @@ android:id="@+id/delete_notification" android:layout_width="36dp" android:layout_height="36dp" + android:layout_marginTop="13dp" android:layout_toStartOf="@id/more" android:visibility="gone" android:background="?android:actionBarItemBackground" @@ -36,6 +37,7 @@ android:id="@+id/visibility" android:layout_width="36dp" android:layout_height="36dp" + android:layout_marginTop="13dp" android:layout_toStartOf="@id/delete_notification" android:background="?android:actionBarItemBackground" android:scaleType="center" @@ -46,6 +48,7 @@ android:id="@+id/collapse_btn" android:layout_width="36dp" android:layout_height="36dp" + android:layout_marginTop="13dp" android:layout_toStartOf="@id/visibility" android:background="?android:actionBarItemBackground" android:visibility="gone" @@ -70,6 +73,7 @@ android:id="@+id/unread_indicator" android:layout_width="36dp" android:layout_height="36dp" + android:layout_marginTop="13dp" android:layout_toStartOf="@id/collapse_btn" android:visibility="gone" android:tint="?android:colorAccent" @@ -83,18 +87,16 @@ android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:layout_marginEnd="12dp" - android:layout_marginTop="3dp" /> + android:layout_marginTop="16dp" /> + android:layout_above="@+id/username_wrap">