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>2019-10-16 21:53:32 +0300
committerstefan-niedermann <info@niedermann.it>2019-10-16 21:53:32 +0300
commit8a52ec0d4a02ae6ea09e26eb24bfb9de57c1dc2f (patch)
tree42872bf0f34bab292a24a3c5a62f09e3e782de87 /app/src/main/res
parentae01d10e1a298240d4902130b83daad257819116 (diff)
#148 Share boards with permissions
Display basic dialog to list all users and their rights
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/dialog_board_share.xml13
-rw-r--r--app/src/main/res/layout/fragment_board_share_user.xml36
-rw-r--r--app/src/main/res/values/strings.xml2
3 files changed, 51 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_board_share.xml b/app/src/main/res/layout/dialog_board_share.xml
new file mode 100644
index 000000000..aadcbb4bd
--- /dev/null
+++ b/app/src/main/res/layout/dialog_board_share.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="@dimen/standard_margin">
+
+ <LinearLayout
+ android:id="@+id/peopleList"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"/>
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_board_share_user.xml b/app/src/main/res/layout/fragment_board_share_user.xml
new file mode 100644
index 000000000..2cac6c7a9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_board_share_user.xml
@@ -0,0 +1,36 @@
+<?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="horizontal"
+ android:padding="@dimen/standard_padding">
+
+ <ImageView
+ android:layout_width="@dimen/avatar_size"
+ android:layout_height="match_parent"
+ android:layout_marginEnd="@dimen/standard_margin"
+ android:layout_marginRight="@dimen/standard_margin"
+ android:contentDescription="@null"
+ app:srcCompat="@drawable/ic_person_grey600_24dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/username"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="20sp"
+ tools:text="Username" />
+
+ <TextView
+ android:id="@+id/permission_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ tools:text="Edit, share" />
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 565744320..576ab9608 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -144,4 +144,6 @@
<string name="rename_column">Rename column</string>
<string name="share_board">Share board</string>
<string name="you_are_currently_offline">You are currently offline</string>
+ <string name="simple_manage">manage</string>
+ <string name="simple_share">share</string>
</resources>