LibreTube/app/src/main/res/layout/channel_search_row.xml

50 lines
1.8 KiB
XML
Raw Normal View History

2022-01-20 17:28:59 +05:30
<?xml version="1.0" encoding="utf-8"?>
2022-07-11 14:08:49 +05:30
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-01-20 17:28:59 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
2022-07-11 14:08:49 +05:30
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
2022-01-20 17:28:59 +05:30
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/search_channel_image"
2022-07-11 14:08:49 +05:30
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginStart="45dp"
android:layout_marginEnd="45dp"
2022-01-20 17:28:59 +05:30
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2022-05-22 15:10:22 +05:30
<LinearLayout
2022-07-11 14:08:49 +05:30
android:id="@+id/search_channel_info"
android:layout_width="match_parent"
2022-01-20 17:28:59 +05:30
android:layout_height="wrap_content"
2022-07-11 14:08:49 +05:30
android:layout_gravity="center"
android:layout_marginEnd="10dp"
android:orientation="vertical">
2022-01-20 17:28:59 +05:30
<TextView
android:id="@+id/search_channel_name"
2022-05-22 15:10:22 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-06-27 22:47:52 +05:30
android:ellipsize="end"
2022-05-22 14:26:49 +05:30
android:maxLines="1"
2022-06-27 22:47:52 +05:30
android:textSize="16sp" />
<TextView
android:id="@+id/search_views"
2022-05-22 15:10:22 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2022-07-11 18:30:33 +05:30
<TextView
android:id="@+id/search_sub_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/subscribe"
android:textColor="?attr/colorPrimary"
android:visibility="gone"/>
2022-05-22 15:10:22 +05:30
</LinearLayout>
2022-01-20 17:28:59 +05:30
2022-07-11 14:08:49 +05:30
</LinearLayout>