2019-11-24 16:38:06 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-10-09 20:24:02 +02:00
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-11-24 16:38:06 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/layoutCard"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginTop="3dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_marginBottom="3dp"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:minHeight="?listPreferredItemHeightSmall"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:cardCornerRadius="5dp"
|
|
|
|
app:cardElevation="4dp">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/instanceIcon"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_centerVertical="true"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:src="@drawable/place_holder_peertube" />
|
2019-11-24 16:38:06 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/instanceName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_toLeftOf="@id/selectInstanceRB"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_toRightOf="@+id/instanceIcon"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:ellipsize="marquee"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:singleLine="true"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:textAppearance="?textAppearanceListItem"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="Framatube" />
|
2019-11-24 16:38:06 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/instanceUrl"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_below="@id/instanceName"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:layout_marginLeft="10dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_marginBottom="6dp"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:layout_toLeftOf="@id/selectInstanceRB"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_toRightOf="@id/instanceIcon"
|
|
|
|
android:autoLink="web"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:ellipsize="marquee"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:singleLine="true"
|
2019-11-24 16:38:06 +01:00
|
|
|
android:textAppearance="?textAppearanceListItemSecondary"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:text="https://framatube.org" />
|
2019-11-24 16:38:06 +01:00
|
|
|
|
|
|
|
<RadioButton
|
|
|
|
android:id="@+id/selectInstanceRB"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toLeftOf="@id/handle" />
|
2019-11-24 16:38:06 +01:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/handle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingTop="12dp"
|
2020-10-09 20:24:02 +02:00
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingBottom="12dp"
|
2020-03-31 09:34:05 +02:00
|
|
|
app:srcCompat="?attr/ic_drag_handle"
|
2020-10-09 20:24:02 +02:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded" />
|
2019-11-24 16:38:06 +01:00
|
|
|
</RelativeLayout>
|
2020-10-09 20:24:02 +02:00
|
|
|
</androidx.cardview.widget.CardView>
|