Fix UI for long session names in SessionDetailsContentItem
This commit is contained in:
parent
824752a4ec
commit
bcf315aece
@ -3,8 +3,7 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:paddingTop="14dp">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/sessionDetailsContentTitle"
|
android:id="@+id/sessionDetailsContentTitle"
|
||||||
@ -12,9 +11,10 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/sessionDetailsContentDivider"
|
||||||
app:layout_constraintEnd_toStartOf="@id/sessionDetailsContentDescription"
|
app:layout_constraintEnd_toStartOf="@id/sessionDetailsContentDescription"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="@id/sessionDetailsContentTop"
|
||||||
tools:text="Session name" />
|
tools:text="Session name" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -25,26 +25,34 @@
|
|||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/sessionDetailsContentDivider"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@id/sessionDetailsContentTitle"
|
app:layout_constraintStart_toEndOf="@id/sessionDetailsContentTitle"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="@id/sessionDetailsContentTop"
|
||||||
tools:text="Element Web: Firefox on macOS" />
|
tools:text="Element Web: Firefox" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/sessionDetailsContentDivider"
|
android:id="@+id/sessionDetailsContentDivider"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginTop="14dp"
|
|
||||||
android:background="@drawable/divider_horizontal"
|
android:background="@drawable/divider_horizontal"
|
||||||
app:layout_constraintEnd_toEndOf="@id/sessionDetailsContentDescription"
|
app:layout_constraintEnd_toEndOf="@id/sessionDetailsContentDescription"
|
||||||
app:layout_constraintStart_toStartOf="@id/sessionDetailsContentTitle"
|
app:layout_constraintStart_toStartOf="@id/sessionDetailsContentTitle"
|
||||||
app:layout_constraintTop_toBottomOf="@id/sessionDetailsContentBarrier" />
|
app:layout_constraintTop_toTopOf="@id/sessionDetailsContentBarrier" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Barrier
|
<androidx.constraintlayout.widget.Barrier
|
||||||
android:id="@+id/sessionDetailsContentBarrier"
|
android:id="@+id/sessionDetailsContentBarrier"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:barrierDirection="bottom"
|
app:barrierDirection="bottom"
|
||||||
|
app:barrierMargin="14dp"
|
||||||
app:constraint_referenced_ids="sessionDetailsContentTitle, sessionDetailsContentDescription" />
|
app:constraint_referenced_ids="sessionDetailsContentTitle, sessionDetailsContentDescription" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Guideline
|
||||||
|
android:id="@+id/sessionDetailsContentTop"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintGuide_begin="14dp" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/sessionDetailsHeaderTitle"
|
android:id="@+id/sessionDetailsHeaderTitle"
|
||||||
|
Loading…
Reference in New Issue
Block a user