1
0
mirror of https://github.com/sismics/docs.git synced 2026-01-21 12:45:35 +00:00

Android: share editing

This commit is contained in:
jendib
2014-11-29 23:50:56 +01:00
parent 3330acfc75
commit e17abfe411
18 changed files with 531 additions and 2 deletions

View File

@@ -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>

View 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>