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_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
|
||||
|
|
Loading…
Reference in a new issue