Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/item_project.xml')
-rw-r--r--app/src/main/res/layout/item_project.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_project.xml b/app/src/main/res/layout/item_project.xml
new file mode 100644
index 000000000..47ecf732d
--- /dev/null
+++ b/app/src/main/res/layout/item_project.xml
@@ -0,0 +1,45 @@
+<?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"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:padding="@dimen/spacer_2x">
+
+ <androidx.appcompat.widget.AppCompatImageView
+ android:layout_width="@dimen/icon_size_details"
+ android:layout_height="@dimen/icon_size_details"
+ android:contentDescription="@null"
+ android:focusable="false"
+ android:scaleType="center"
+ android:layout_marginEnd="@dimen/spacer_2x"
+ app:srcCompat="@drawable/ic_projects_24" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/projectName"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="middle"
+ android:singleLine="true"
+ android:textAppearance="?attr/textAppearanceListItem"
+ tools:text="@tools:sample/full_names" />
+
+ <TextView
+ android:id="@+id/resourcesCount"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="middle"
+ android:singleLine="true"
+ android:textAppearance="?attr/textAppearanceListItemSecondary"
+ tools:text="4 resources" />
+ </LinearLayout>
+</LinearLayout>