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:
authorStefan Niedermann <info@niedermann.it>2020-04-28 11:56:21 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2020-05-02 18:11:04 +0300
commit6da37889707a9f8cf9bbe817e8170dd16a2e4329 (patch)
tree3017135f4f4f42eb6cf6507db050c926259d2759 /app/src/main/res/layout
parentd462d2a09a4d7fc83f0344d28f3de9b955eb0c26 (diff)
️ Manage tags per board (#309)
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/dialog_board_manage_labels.xml28
-rw-r--r--app/src/main/res/layout/item_manage_label.xml10
2 files changed, 32 insertions, 6 deletions
diff --git a/app/src/main/res/layout/dialog_board_manage_labels.xml b/app/src/main/res/layout/dialog_board_manage_labels.xml
index 0f8d64787..86f3b068c 100644
--- a/app/src/main/res/layout/dialog_board_manage_labels.xml
+++ b/app/src/main/res/layout/dialog_board_manage_labels.xml
@@ -1,13 +1,39 @@
<?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:orientation="vertical">
+ android:orientation="vertical"
+ android:padding="?attr/dialogPreferredPadding">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <EditText
+ android:id="@+id/add_label_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/add_tag" />
+
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:contentDescription="@string/add_comment"
+ android:tint="@android:color/white"
+ app:fabSize="mini"
+ app:srcCompat="@drawable/ic_send_white_24dp" />
+ </LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/labels"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_manage_label" />
</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_manage_label.xml b/app/src/main/res/layout/item_manage_label.xml
index 8e798b8b0..6e033e6f5 100644
--- a/app/src/main/res/layout/item_manage_label.xml
+++ b/app/src/main/res/layout/item_manage_label.xml
@@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="@dimen/spacer_1x">
+ android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
@@ -18,6 +17,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
+ android:ellipsize="middle"
tools:text="@tools:sample/cities" />
</LinearLayout>
@@ -26,7 +26,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
- android:background="?android:selectableItemBackground"
+ android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/spacer_1x"
app:srcCompat="@drawable/ic_edit_grey600_24dp" />
@@ -35,7 +35,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
- android:background="?android:selectableItemBackground"
+ android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/spacer_1x"
android:tint="@color/grey600"
app:srcCompat="@drawable/ic_colorize_24dp" />
@@ -45,7 +45,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
- android:background="?android:selectableItemBackground"
+ android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/spacer_1x"
app:srcCompat="@drawable/ic_delete_black_24dp" />
</LinearLayout> \ No newline at end of file