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"
|
2022-08-11 08:49:20 +00:00
|
|
|
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"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:nextFocusRight="@id/action_button"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="12dp">
|
2022-08-06 23:43:39 +00:00
|
|
|
|
2022-08-11 08:49:20 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/entry_icon"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2022-08-11 08:49:20 +00:00
|
|
|
android:layout_gravity="start|center_vertical"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:layout_marginEnd="16dp"
|
2022-08-18 00:54:05 +00:00
|
|
|
android:scaleType="fitCenter"
|
2022-08-11 08:49:20 +00:00
|
|
|
app:srcCompat="@drawable/ic_github_logo" />
|
|
|
|
|
2022-08-06 23:43:39 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-08-07 11:48:01 +00:00
|
|
|
android:layout_weight="1"
|
2022-08-06 23:43:39 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2022-08-19 08:59:11 +00:00
|
|
|
<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"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="Test repository" />
|
|
|
|
|
2022-08-11 08:49:20 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-08-11 08:49:20 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
2022-08-19 08:59:11 +00:00
|
|
|
android:id="@+id/lang_icon"
|
2022-08-11 08:49:20 +00:00
|
|
|
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"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:text="🇷🇼"
|
2022-08-19 18:28:03 +00:00
|
|
|
|
|
|
|
android:textColor="?attr/grayTextColor"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
2022-08-11 08:49:20 +00:00
|
|
|
|
2022-08-17 13:51:58 +00:00
|
|
|
<TextView
|
2022-08-19 08:59:11 +00:00
|
|
|
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"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:text="v1"
|
2022-08-19 18:28:03 +00:00
|
|
|
android:textColor="?attr/grayTextColor"
|
2022-08-19 08:59:11 +00:00
|
|
|
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" />
|
|
|
|
|
2022-08-11 08:49:20 +00:00
|
|
|
<TextView
|
2022-08-19 18:28:03 +00:00
|
|
|
android:id="@+id/nsfw_marker"
|
2022-08-11 08:49:20 +00:00
|
|
|
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"
|
2022-08-11 08:49:20 +00:00
|
|
|
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
|
2022-08-11 08:49:20 +00:00
|
|
|
android:id="@+id/action_settings"
|
2022-08-06 23:43:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
2022-08-07 11:48:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-08-08 18:52:03 +00:00
|
|
|
android:layout_marginStart="10dp"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/title_settings"
|
2022-08-11 08:49:20 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
app:srcCompat="@drawable/ic_baseline_tune_24"
|
2022-08-19 08:59:11 +00:00
|
|
|
tools:visibility="visible" />
|
2022-08-11 08:49:20 +00:00
|
|
|
|
|
|
|
<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"
|
2022-08-19 08:59:11 +00:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/download"
|
2022-08-18 00:54:05 +00:00
|
|
|
android:focusable="true"
|
2022-08-19 08:59:11 +00:00
|
|
|
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>
|