cloudstream/app/src/main/res/layout/repository_item.xml

134 lines
5 KiB
XML
Raw Normal View History

2022-08-06 23:43:39 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2022-08-06 23:43:39 +00:00
xmlns:tools="http://schemas.android.com/tools"
2022-08-08 18:52:03 +00:00
android:id="@+id/repository_item_root"
2022-08-06 23:43:39 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-08-18 00:54:05 +00:00
android:background="?attr/selectableItemBackground"
android:nextFocusRight="@id/action_button"
android:orientation="horizontal"
android:padding="12dp">
2022-08-06 23:43:39 +00:00
<ImageView
android:id="@+id/entry_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="start|center_vertical"
android:layout_marginEnd="16dp"
2022-08-18 00:54:05 +00:00
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_github_logo" />
2022-08-06 23:43:39 +00:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
2022-08-06 23:43:39 +00:00
android:orientation="vertical">
<TextView
android:id="@+id/main_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-08-19 18:28:03 +00:00
android:textColor="?attr/textColor"
android:textSize="16sp"
tools:text="Test repository" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/lang_icon"
android:layout_width="wrap_content"
2022-08-19 18:28:03 +00:00
android:layout_height="match_parent"
2022-08-20 15:38:41 +00:00
android:layout_marginEnd="5dp"
android:text="🇷🇼"
2022-08-19 18:28:03 +00:00
android:textColor="?attr/grayTextColor"
android:visibility="gone"
tools:visibility="visible" />
2022-08-17 13:51:58 +00:00
<TextView
android:id="@+id/ext_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2022-08-20 15:38:41 +00:00
android:layout_marginEnd="5dp"
android:text="v1"
2022-08-19 18:28:03 +00:00
android:textColor="?attr/grayTextColor"
android:visibility="gone"
tools:visibility="visible" />
<TextView
2022-08-19 18:28:03 +00:00
android:id="@+id/ext_filesize"
2022-08-17 13:51:58 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-08-19 18:28:03 +00:00
android:layout_gravity="center_vertical"
2022-08-20 15:38:41 +00:00
android:layout_marginEnd="5dp"
2022-08-19 18:28:03 +00:00
android:text="100MB"
android:textColor="?attr/grayTextColor"
2022-08-17 13:51:58 +00:00
android:visibility="gone"
tools:visibility="visible" />
2022-09-05 16:45:13 +00:00
<TextView
android:id="@+id/ext_votes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="5dp"
android:textColor="?attr/grayTextColor"
2022-09-06 19:31:44 +00:00
tools:text="Votes: 10K"
2022-09-05 16:45:13 +00:00
android:visibility="gone"
tools:visibility="visible" />
<TextView
2022-08-19 18:28:03 +00:00
android:id="@+id/nsfw_marker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-08-19 18:28:03 +00:00
android:text="@string/is_adult"
android:textColor="@color/adultColor"
android:visibility="gone"
tools:visibility="visible" />
</LinearLayout>
2022-08-06 23:43:39 +00:00
<TextView
android:id="@+id/sub_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-09-05 16:45:13 +00:00
android:singleLine="true"
2022-08-06 23:43:39 +00:00
android:textColor="?attr/grayTextColor"
android:textSize="12sp"
tools:text="https://github.com/..." />
</LinearLayout>
<ImageView
android:id="@+id/action_settings"
2022-08-06 23:43:39 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2022-08-08 18:52:03 +00:00
android:layout_marginStart="10dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_settings"
android:visibility="gone"
app:srcCompat="@drawable/ic_baseline_tune_24"
tools:visibility="visible" />
<ImageView
android:id="@+id/action_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginStart="10dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/download"
2022-08-18 00:54:05 +00:00
android:focusable="true"
android:nextFocusLeft="@id/repository_item_root"
android:padding="12dp"
tools:src="@drawable/ic_baseline_add_24" />
2022-08-06 23:43:39 +00:00
</LinearLayout>