mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingVertical="4dp">
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
android:id="@+id/subscription_channel_image"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_centerVertical="true" />
|
|
|
|
<TextView
|
|
android:id="@+id/subscription_channel_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_toEndOf="@id/subscription_channel_image"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textSize="16sp"
|
|
tools:text="Channel Name" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/subscription_subscribe"
|
|
style="@style/Widget.Material3.Button.ElevatedButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:stateListAnimator="@null"
|
|
android:text="@string/unsubscribe"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="12sp"
|
|
app:cornerRadius="20dp"
|
|
app:elevation="20dp" />
|
|
</RelativeLayout> |