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

57 lines
2.3 KiB
XML
Raw Normal View History

2022-01-20 17:28:59 +05:30
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2022-01-20 17:28:59 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:background="?android:attr/selectableItemBackground"
2022-01-20 17:28:59 +05:30
>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/search_channel_image"
android:layout_width="110dp"
android:layout_height="110dp"
2022-05-04 03:09:20 +05:30
android:layout_marginStart="36dp"
2022-01-20 17:28:59 +05:30
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="wrap_content"
2022-01-20 17:28:59 +05:30
android:layout_height="wrap_content"
2022-05-04 03:09:20 +05:30
android:layout_marginStart="40dp"
app:layout_constraintBottom_toBottomOf="parent"
2022-05-04 03:09:20 +05:30
app:layout_constraintStart_toEndOf="@+id/search_channel_image"
app:layout_constraintTop_toTopOf="parent">
2022-01-20 17:28:59 +05:30
<TextView
android:id="@+id/search_channel_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/search_views"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="TextView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/search_channel_name" />
</androidx.constraintlayout.widget.ConstraintLayout>
2022-01-20 17:28:59 +05:30
<Button
android:id="@+id/search_sub_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:background="@android:color/transparent"
2022-01-20 17:28:59 +05:30
android:text="@string/subscribe"
2022-05-19 17:44:18 +05:30
android:textColor="?attr/colorPrimary"
android:visibility="gone"
app:layout_constraintStart_toEndOf="@+id/search_channel_image" />
2022-01-20 17:28:59 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>