mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Add some space between the 2 TextViews, and improve the layout
This commit is contained in:
parent
e91e26ebfb
commit
a8c921ef03
1 changed files with 14 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue