From 337129e49be5b8cf520e936c7ab254e46409f95c Mon Sep 17 00:00:00 2001 From: Daniel Schaal Date: Sat, 10 Jul 2021 10:00:14 +0200 Subject: Convert list_item to ConstraintLayout --- app/src/main/res/layout/list_item.xml | 120 ++++++++++++++++++---------------- 1 file changed, 62 insertions(+), 58 deletions(-) diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml index f6eeb5cd..cb7e755f 100644 --- a/app/src/main/res/layout/list_item.xml +++ b/app/src/main/res/layout/list_item.xml @@ -23,87 +23,91 @@ xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto"> - - - + android:focusable="true"> + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toStartOf="@id/textViewTitle" + tools:src="@drawable/ic_feed_icon" /> - + android:ellipsize="end" + android:maxLines="2" + android:textAppearance="@style/TextAppearance.AppCompat.Subhead" + app:layout_constraintEnd_toStartOf="@id/play" + app:layout_constraintStart_toEndOf="@id/imageview_favicon" + app:layout_constraintTop_toTopOf="parent" + tools:text="This is the article title" /> - + - + - - + + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBaseline_toBaselineOf="@id/textViewFeedTitle" + tools:text="1h" /> - + \ No newline at end of file -- cgit v1.2.3