Add some space between the 2 TextViews, and improve the layout

This commit is contained in:
Benoit Marty 2021-12-08 22:21:18 +01:00 committed by Benoit Marty
parent e91e26ebfb
commit a8c921ef03

View file

@ -5,8 +5,20 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground"
android:minHeight="64dp"
android:padding="16dp"> android:padding="16dp">
<androidx.constraintlayout.helper.widget.Flow
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical"
app:constraint_referenced_ids="discovery_policy_name,discovery_policy_url"
app:flow_verticalGap="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/discovery_policy_arrow"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/discovery_policy_name" android:id="@+id/discovery_policy_name"
style="@style/Widget.Vector.TextView.Body" style="@style/Widget.Vector.TextView.Body"
@ -16,10 +28,7 @@
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@id/discovery_policy_arrow" tools:text="Copyright" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Integration manager" />
<TextView <TextView
android:id="@+id/discovery_policy_url" android:id="@+id/discovery_policy_url"
@ -29,10 +38,7 @@
android:paddingStart="0dp" android:paddingStart="0dp"
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_secondary"
app:layout_constraintEnd_toStartOf="@id/discovery_policy_arrow" tools:text="https://element.io/copyright" />
app:layout_constraintStart_toStartOf="@id/discovery_policy_name"
app:layout_constraintTop_toBottomOf="@id/discovery_policy_name"
tools:text="Use bots, bridges, widget and sticker packs." />
<!-- Do not use drawableEnd on the TextView because of RTL support --> <!-- Do not use drawableEnd on the TextView because of RTL support -->
<ImageView <ImageView