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"
app:layout_constraintEnd_toStartOf="@+id/constraintLayout"
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"
android:layout_marginEnd="40dp"
app:layout_constraintBottom_toBottomOf="parent"
2022-01-20 17:28:59 +05:30
app:layout_constraintEnd_toEndOf="parent"
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"
android:textColor="@color/colorPrimary"
android:visibility="gone"
app:layout_constraintStart_toEndOf="@+id/search_channel_image" />
2022-01-20 17:28:59 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>