fix paddings in contact and muc details

This commit is contained in:
Daniel Gultsch 2024-04-12 08:38:19 +02:00
parent 13a879841f
commit 21816e0e64
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
2 changed files with 18 additions and 43 deletions

View file

@ -137,26 +137,22 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:padding="@dimen/card_padding_regular">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/media" android:id="@+id/media"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="-2dp" android:layout_margin="-2dp"
android:layout_marginEnd="-2dp" android:orientation="horizontal" />
android:orientation="horizontal"
android:paddingStart="@dimen/card_padding_regular"
android:paddingTop="@dimen/card_padding_regular"
android:paddingEnd="@dimen/card_padding_regular"
android:paddingBottom="@dimen/card_padding_list" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"
android:orientation="horizontal" android:layout_marginTop="16dp"
android:layout_margin="16dp"> android:orientation="horizontal">
<Button <Button
android:id="@+id/show_media" android:id="@+id/show_media"
@ -208,7 +204,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:orientation="horizontal"> android:orientation="horizontal"
android:padding="@dimen/card_padding_list">
<Button <Button
@ -216,9 +213,6 @@
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minWidth="0dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/scan_qr_code" /> android:text="@string/scan_qr_code" />
<Button <Button
@ -226,9 +220,6 @@
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minWidth="0dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/show_inactive_devices" /> android:text="@string/show_inactive_devices" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View file

@ -219,15 +219,13 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:padding="@dimen/card_padding_regular">
<TextView <TextView
android:id="@+id/no_users_hints" android:id="@+id/no_users_hints"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="@dimen/card_padding_regular"
android:paddingTop="@dimen/card_padding_regular"
android:paddingEnd="@dimen/card_padding_regular"
android:text="@string/no_users_hint_channel" android:text="@string/no_users_hint_channel"
android:textAppearance="?textAppearanceBodyMedium" android:textAppearance="?textAppearanceBodyMedium"
android:textColor="?colorOnSurfaceVariant" /> android:textColor="?colorOnSurfaceVariant" />
@ -236,18 +234,14 @@
android:id="@+id/users" android:id="@+id/users"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="-2dp" android:layout_margin="-2dp"
android:layout_marginEnd="-2dp" android:orientation="horizontal" />
android:orientation="horizontal"
android:paddingStart="@dimen/card_padding_regular"
android:paddingTop="@dimen/card_padding_regular"
android:paddingEnd="@dimen/card_padding_regular"
android:paddingBottom="@dimen/card_padding_list" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_marginTop="16dp"
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
@ -255,9 +249,6 @@
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minWidth="0dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/invite" /> android:text="@string/invite" />
<Button <Button
@ -265,9 +256,6 @@
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minWidth="0dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
tools:text="View n Participants" /> tools:text="View n Participants" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@ -373,25 +361,21 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:padding="@dimen/card_padding_regular">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/media" android:id="@+id/media"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="-2dp" android:layout_margin="-2dp"
android:layout_marginEnd="-2dp" android:orientation="horizontal" />
android:orientation="horizontal"
android:paddingStart="@dimen/card_padding_regular"
android:paddingTop="@dimen/card_padding_regular"
android:paddingEnd="@dimen/card_padding_regular"
android:paddingBottom="@dimen/card_padding_list" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_margin="16dp" android:layout_marginTop="16dp"
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button