diff options
author | stefan-niedermann <info@niedermann.it> | 2019-10-19 15:44:07 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-10-19 15:44:07 +0300 |
commit | a261fc8463409f72972bbc1b18d7a089a0a5906f (patch) | |
tree | d6a4e53da282866b3ae91d89db6b669d25029fd6 /app/src/main/res | |
parent | 6cafeee354083a6df3a957cf4760fded079ab70a (diff) | |
parent | 1f25eb3b662777aa79de4d6220204d6c85581365 (diff) |
Merge branch 'acl-ui'
Diffstat (limited to 'app/src/main/res')
13 files changed, 113 insertions, 28 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 2067b75dc..005a6525c 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -22,8 +22,7 @@ android:id="@+id/no_stacks" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone" - tools:visibility="visible"> + android:visibility="gone"> <androidx.appcompat.widget.AppCompatImageView android:layout_width="match_parent" 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..fb99d305b --- /dev/null +++ b/app/src/main/res/layout/dialog_board_share.xml @@ -0,0 +1,18 @@ +<?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"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/peopleList" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="@dimen/standard_padding" + android:scrollbarStyle="outsideOverlay" + android:scrollbars="vertical" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:listitem="@layout/item_access_control" /> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_card_edit_tab_activities.xml b/app/src/main/res/layout/fragment_card_edit_tab_activities.xml index 0196b211a..b1f519bfb 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_activities.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_activities.xml @@ -3,27 +3,22 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical"> - <ScrollView - android:id="@+id/scrollView" + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/activity_list" android:layout_width="match_parent" - android:layout_height="match_parent" - android:visibility="gone" - tools:visibility="gone"> - - <LinearLayout - android:id="@+id/activity_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" /> - </ScrollView> + android:layout_height="wrap_content" + android:scrollbars="vertical" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:listitem="@layout/item_activity" /> - <RelativeLayout xmlns:app="http://schemas.android.com/apk/res-auto" + <RelativeLayout android:id="@+id/no_activities" android:layout_width="match_parent" android:layout_height="match_parent" - tools:visibility="visible"> + tools:visibility="gone"> <ImageView android:layout_width="match_parent" diff --git a/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml b/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml index 53a023b23..eb708bbed 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml @@ -3,22 +3,26 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools" android:layout_marginTop="@dimen/standard_margin" android:orientation="vertical"> - <LinearLayout + <androidx.recyclerview.widget.RecyclerView android:id="@+id/attachments_list" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - android:visibility="gone"> - </LinearLayout> + android:scrollbars="vertical" + android:visibility="gone" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:listitem="@layout/item_attachment" + tools:visibility="visible" /> <RelativeLayout android:id="@+id/no_attachments" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone"> + android:visibility="visible" + tools:visibility="gone"> <ImageView android:layout_width="match_parent" diff --git a/app/src/main/res/layout/fragment_stack.xml b/app/src/main/res/layout/fragment_stack.xml index 528bae8f9..d97653352 100644 --- a/app/src/main/res/layout/fragment_stack.xml +++ b/app/src/main/res/layout/fragment_stack.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical"> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout @@ -58,7 +59,8 @@ android:paddingTop="@dimen/standard_half_padding" android:paddingBottom="@dimen/standard_half_padding" android:scrollbarStyle="outsideOverlay" - android:scrollbars="vertical" /> + android:scrollbars="vertical" + tools:listitem="@layout/item_card"/> </LinearLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_access_control.xml b/app/src/main/res/layout/item_access_control.xml new file mode 100644 index 000000000..291037118 --- /dev/null +++ b/app/src/main/res/layout/item_access_control.xml @@ -0,0 +1,63 @@ +<?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" /> + + <com.google.android.flexbox.FlexboxLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:flexWrap="wrap" + app:justifyContent="space_between"> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/permission_edit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:checked="true" + android:text="@string/edit" + app:switchPadding="@dimen/standard_half_margin" /> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/permission_share" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/simple_share" + app:switchPadding="@dimen/standard_half_margin" /> + + <androidx.appcompat.widget.SwitchCompat + android:id="@+id/permission_manage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:checked="true" + android:text="@string/simple_manage" + app:switchPadding="@dimen/standard_half_margin" /> + + </com.google.android.flexbox.FlexboxLayout> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_card_edit_tab_activity.xml b/app/src/main/res/layout/item_activity.xml index 09e9e6c38..9655f6a24 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_activity.xml +++ b/app/src/main/res/layout/item_activity.xml @@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:orientation="vertical" android:padding="@dimen/standard_padding"> @@ -23,8 +23,8 @@ <androidx.appcompat.widget.AppCompatImageView android:id="@+id/type" - android:layout_width="36dp" - android:layout_height="36dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_marginEnd="@dimen/standard_margin" android:layout_marginRight="@dimen/standard_margin" app:srcCompat="@drawable/type_change_36dp" /> diff --git a/app/src/main/res/layout/fragment_card_edit_tab_attachment.xml b/app/src/main/res/layout/item_attachment.xml index a2a14a9f9..a2a14a9f9 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_attachment.xml +++ b/app/src/main/res/layout/item_attachment.xml diff --git a/app/src/main/res/layout/dropdown_item_singleline.xml b/app/src/main/res/layout/item_autocomplete_dropdown.xml index ea2a589c4..fc3e51a7a 100644 --- a/app/src/main/res/layout/dropdown_item_singleline.xml +++ b/app/src/main/res/layout/item_autocomplete_dropdown.xml @@ -11,7 +11,7 @@ android:layout_height="40dp" android:layout_margin="@dimen/standard_margin" android:contentDescription="@null" - tools:src="@drawable/ic_close_circle_grey600" /> + tools:src="@drawable/ic_label_grey600_24dp" /> <TextView android:id="@+id/label" @@ -25,6 +25,6 @@ android:paddingEnd="@dimen/standard_padding" android:paddingRight="@dimen/standard_padding" android:textSize="18sp" - tools:text="TestUser One" /> + tools:text="Label" /> </LinearLayout> diff --git a/app/src/main/res/layout/fragment_card.xml b/app/src/main/res/layout/item_card.xml index 98b37bbce..98b37bbce 100644 --- a/app/src/main/res/layout/fragment_card.xml +++ b/app/src/main/res/layout/item_card.xml diff --git a/app/src/main/res/values/customization.xml b/app/src/main/res/values/customization.xml index 695b0d22d..444c6759e 100644 --- a/app/src/main/res/values/customization.xml +++ b/app/src/main/res/values/customization.xml @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <resources> + <!-- How many avatars should be displayed in the card list view --> + <integer name="max_avatar_count">3</integer> <!-- How many labels are shown in the card list view before "..." --> <integer name="max_labels_shown">3</integer> <!-- How many characters of the labels are displayed at the card list view --> diff --git a/app/src/main/res/values/setup.xml b/app/src/main/res/values/setup.xml index 66aa2cefb..4da70f773 100644 --- a/app/src/main/res/values/setup.xml +++ b/app/src/main/res/values/setup.xml @@ -8,7 +8,7 @@ <!-- To be concatenated with the account id --> <string name="shared_preference_last_board_for_account_" translatable="false">it.niedermann.nextcloud.deck.last_board_for_account_</string> - <string name="shared_preference_last_stack_for_account_and_board" translatable="false">it.niedermann.nextcloud.deck.last_stack_for_board_</string> + <string name="shared_preference_last_stack_for_account_and_board_" translatable="false">it.niedermann.nextcloud.deck.last_stack_for_board_</string> <integer name="minimum_server_app_major" translatable="false">0</integer> <integer name="minimum_server_app_minor" translatable="false">6</integer> <integer name="minimum_server_app_patch" translatable="false">4</integer> 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> |