diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 62f3fa3fbe8..ba92b18f6cc 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -208,7 +208,7 @@ diff --git a/res/drawable-hdpi/ic_close.png b/res/drawable-hdpi/ic_close.png new file mode 100644 index 00000000000..577755152df Binary files /dev/null and b/res/drawable-hdpi/ic_close.png differ diff --git a/res/drawable-hdpi/ic_group.png b/res/drawable-hdpi/ic_group.png new file mode 100644 index 00000000000..71dedc5e26b Binary files /dev/null and b/res/drawable-hdpi/ic_group.png differ diff --git a/res/drawable-hdpi/ic_search.png b/res/drawable-hdpi/ic_search.png new file mode 100644 index 00000000000..8e9503bf939 Binary files /dev/null and b/res/drawable-hdpi/ic_search.png differ diff --git a/res/drawable-hdpi/ic_user.png b/res/drawable-hdpi/ic_user.png new file mode 100644 index 00000000000..72b2171642f Binary files /dev/null and b/res/drawable-hdpi/ic_user.png differ diff --git a/res/drawable-mdpi/ic_close.png b/res/drawable-mdpi/ic_close.png new file mode 100644 index 00000000000..d5b64f26d3b Binary files /dev/null and b/res/drawable-mdpi/ic_close.png differ diff --git a/res/drawable-mdpi/ic_group.png b/res/drawable-mdpi/ic_group.png new file mode 100644 index 00000000000..6b31486565f Binary files /dev/null and b/res/drawable-mdpi/ic_group.png differ diff --git a/res/drawable-mdpi/ic_search.png b/res/drawable-mdpi/ic_search.png new file mode 100644 index 00000000000..f5b09646cf5 Binary files /dev/null and b/res/drawable-mdpi/ic_search.png differ diff --git a/res/drawable-mdpi/ic_user.png b/res/drawable-mdpi/ic_user.png new file mode 100644 index 00000000000..344baee5882 Binary files /dev/null and b/res/drawable-mdpi/ic_user.png differ diff --git a/res/drawable-xhdpi/ic_close.png b/res/drawable-xhdpi/ic_close.png new file mode 100644 index 00000000000..06e7ef4ced4 Binary files /dev/null and b/res/drawable-xhdpi/ic_close.png differ diff --git a/res/drawable-xhdpi/ic_group.png b/res/drawable-xhdpi/ic_group.png new file mode 100644 index 00000000000..d32498bafc2 Binary files /dev/null and b/res/drawable-xhdpi/ic_group.png differ diff --git a/res/drawable-xhdpi/ic_search.png b/res/drawable-xhdpi/ic_search.png new file mode 100644 index 00000000000..434015fda82 Binary files /dev/null and b/res/drawable-xhdpi/ic_search.png differ diff --git a/res/drawable-xhdpi/ic_user.png b/res/drawable-xhdpi/ic_user.png new file mode 100644 index 00000000000..bb54af57928 Binary files /dev/null and b/res/drawable-xhdpi/ic_user.png differ diff --git a/res/drawable-xxhdpi/ic_close.png b/res/drawable-xxhdpi/ic_close.png new file mode 100644 index 00000000000..663e835aeb5 Binary files /dev/null and b/res/drawable-xxhdpi/ic_close.png differ diff --git a/res/drawable-xxhdpi/ic_group.png b/res/drawable-xxhdpi/ic_group.png new file mode 100644 index 00000000000..6d83ea89bd5 Binary files /dev/null and b/res/drawable-xxhdpi/ic_group.png differ diff --git a/res/drawable-xxhdpi/ic_search.png b/res/drawable-xxhdpi/ic_search.png new file mode 100644 index 00000000000..8627e0e6c2c Binary files /dev/null and b/res/drawable-xxhdpi/ic_search.png differ diff --git a/res/drawable-xxhdpi/ic_user.png b/res/drawable-xxhdpi/ic_user.png new file mode 100644 index 00000000000..f36e4cba949 Binary files /dev/null and b/res/drawable-xxhdpi/ic_user.png differ diff --git a/res/layout/edit_share_layout.xml b/res/layout/edit_share_layout.xml index 02bdd983fb2..1b1399c7f92 100644 --- a/res/layout/edit_share_layout.xml +++ b/res/layout/edit_share_layout.xml @@ -27,18 +27,41 @@ + + + + - - - + \ No newline at end of file diff --git a/res/layout/password_dialog.xml b/res/layout/password_dialog.xml index b81e40b4a83..11c70c8f56f 100644 --- a/res/layout/password_dialog.xml +++ b/res/layout/password_dialog.xml @@ -27,7 +27,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" - android:inputType="textPassword"> + android:inputType="textPassword" + android:layout_margin="@dimen/standard_margin"> \ No newline at end of file diff --git a/res/layout/search_users_groups_layout.xml b/res/layout/search_users_groups_layout.xml index 8eed34a9fa8..e4244ef02c2 100644 --- a/res/layout/search_users_groups_layout.xml +++ b/res/layout/search_users_groups_layout.xml @@ -21,18 +21,31 @@ android:layout_height="match_parent" android:orientation="vertical" android:id="@+id/search_layout" - android:minWidth="200dp"> + android:minWidth="200dp" + android:layout_marginRight="@dimen/standard_margin" + android:layout_marginBottom="20dp"> - + + + android:hint="@string/share_search" + style="@style/ownCloud.SearchView"/> + android:scrollbars="vertical" + android:layout_marginLeft="20dp" + android:layout_marginRight="@dimen/standard_half_margin"/> diff --git a/res/layout/share_file_layout.xml b/res/layout/share_file_layout.xml index ce445ff6d3e..70a6a91a2cf 100644 --- a/res/layout/share_file_layout.xml +++ b/res/layout/share_file_layout.xml @@ -15,17 +15,17 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> - + @@ -33,245 +33,254 @@ android:id="@+id/shareHeaderContainer" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="6dp" - android:layout_marginBottom="6dp" - android:background="@color/background_color"> + android:padding="@dimen/standard_padding"> + android:layout_marginRight="@dimen/standard_half_margin" + android:src="@drawable/file"/> + android:singleLine="true" + android:text="@string/placeholder_filename" + android:textColor="@color/black" + android:textSize="16sp"/> + android:layout_toEndOf="@+id/shareFileIcon" + android:layout_toRightOf="@+id/shareFileIcon" + android:text="@string/placeholder_filesize" + android:textSize="12sp"/> - - - + android:layout_height="2dp" + android:background="@color/owncloud_blue" + /> - - - + android:orientation="vertical" + android:padding="@dimen/standard_padding"> - + - + - + android:padding="@dimen/standard_half_padding" + android:text="@string/share_no_users" + android:textSize="12sp"/> - + android:layout_gravity="center_horizontal" + android:contentDescription="shareAddUserButton" + android:text="@string/share_add_user_or_group" + android:theme="@style/Button.Primary"/> - + android:layout_gravity="start" + android:layout_marginTop="@dimen/standard_half_margin" + android:checked="false" + android:paddingRight="@dimen/standard_half_padding" + android:text="@string/share_via_link_section_title" + android:textColor="@color/color_accent"/> - + - + - + - + - + + + > - + - + - + - + + + android:visibility="invisible" + > - + - + + + + + + \ No newline at end of file diff --git a/res/layout/share_user_item.xml b/res/layout/share_user_item.xml index 714b791ee9e..ac0c9e236c2 100644 --- a/res/layout/share_user_item.xml +++ b/res/layout/share_user_item.xml @@ -26,42 +26,48 @@ android:orientation="horizontal" android:weightSum="1" android:longClickable="true"> + + + android:ellipsize="middle" + android:layout_gravity="center_vertical"/> + android:layout_gravity="center_vertical" + android:padding="@dimen/standard_half_padding"/> + android:padding="@dimen/standard_half_padding" + android:layout_gravity="center_vertical"/> + android:background="@color/list_divider_background" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index b4bddb7281a..d5bebffb938 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -375,6 +375,7 @@ moved to app folder Sharing + Share %1$s Share with users and groups No data shared with users yet Add user or group @@ -384,6 +385,8 @@ Secured Allow editing Get link + Share with … + Share with %1$s Search diff --git a/res/values/styles.xml b/res/values/styles.xml index 512e7f582d7..6d6947009cf 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -29,6 +29,7 @@ @color/color_accent @style/Theme.ownCloud.Dialog @style/ownCloud.AlertDialog + @style/ownCloud.SearchView @@ -40,6 +41,7 @@ @color/color_accent @style/Theme.ownCloud.Dialog @style/ownCloud.AlertDialog + @style/ownCloud.SearchView + + @@ -130,6 +143,16 @@ @style/Theme.ownCloud.Dialog.ButtonBar + + + +