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_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:minHeight="64dp"
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
android:id="@+id/discovery_policy_name"
style="@style/Widget.Vector.TextView.Body"
@ -16,10 +28,7 @@
android:paddingEnd="8dp"
android:textColor="?vctr_content_primary"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@id/discovery_policy_arrow"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Integration manager" />
tools:text="Copyright" />
<TextView
android:id="@+id/discovery_policy_url"
@ -29,10 +38,7 @@
android:paddingStart="0dp"
android:paddingEnd="8dp"
android:textColor="?vctr_content_secondary"
app:layout_constraintEnd_toStartOf="@id/discovery_policy_arrow"
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." />
tools:text="https://element.io/copyright" />
<!-- Do not use drawableEnd on the TextView because of RTL support -->
<ImageView