mirror of
https://github.com/sismics/docs.git
synced 2025-12-30 10:01:51 +00:00
Android: share editing
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 271 B |
Binary file not shown.
|
After Width: | Height: | Size: 503 B |
Binary file not shown.
|
After Width: | Height: | Size: 629 B |
Binary file not shown.
|
After Width: | Height: | Size: 341 B |
Binary file not shown.
|
After Width: | Height: | Size: 681 B |
Binary file not shown.
|
After Width: | Height: | Size: 866 B |
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="12dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/shareListView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:choiceMode="singleChoice"
|
||||
android:divider="@android:color/transparent"
|
||||
android:dividerHeight="0dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/shareEmptyView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:visibility="gone"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/document_not_shared"/>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/shareProgressBar"
|
||||
style="?android:progressBarStyle"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:indeterminate="true"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#e5e5e5"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/shareNameEditText"
|
||||
android:hint="@string/add_share_hint"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight=".8"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/shareAddButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight=".2"
|
||||
android:text="@string/add"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
52
docs-android/app/src/main/res/layout/share_list_item.xml
Normal file
52
docs-android/app/src/main/res/layout/share_list_item.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="0dp"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iconShareImageView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_link_grey600_24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/shareTextView"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/iconShareImageView"
|
||||
android:layout_toEndOf="@id/iconShareImageView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif"
|
||||
android:textColor="#212121"
|
||||
android:text="Shared with Bob"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/shareDeleteButton"
|
||||
android:layout_toLeftOf="@+id/shareSendButton"
|
||||
android:layout_toStartOf="@+id/shareSendButton"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_delete_grey600_24dp"
|
||||
android:contentDescription="@string/delete_share"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/shareSendButton"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/ic_share_grey600_24dp"
|
||||
android:contentDescription="@string/send_share"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -2,6 +2,12 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/share"
|
||||
app:showAsAction="collapseActionView"
|
||||
android:title="@string/share">
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/download_file"
|
||||
app:showAsAction="collapseActionView"
|
||||
|
||||
@@ -42,5 +42,17 @@
|
||||
<string name="no_files">No files</string>
|
||||
<string name="error_loading_files">Error loading files</string>
|
||||
<string name="new_document">New document</string>
|
||||
<string name="share">Sharing</string>
|
||||
<string name="close">Close</string>
|
||||
<string name="add">Add</string>
|
||||
<string name="add_share_hint">Name the share (optional)</string>
|
||||
<string name="document_not_shared">This document is not currently shared</string>
|
||||
<string name="delete_share">Delete this share</string>
|
||||
<string name="send_share">Send this share</string>
|
||||
<string name="error_loading_shares">Error loading shares</string>
|
||||
<string name="error_adding_share">Error adding share</string>
|
||||
<string name="share_default_name">Share link</string>
|
||||
<string name="error_deleting_share">Error deleting the share</string>
|
||||
<string name="send_share_to">Send share link to</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user