summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorLikai Ding <likaid@codeaurora.org>2013-08-15 15:02:24 +0800
committerXiaojing Zhang <zhangx@codeaurora.org>2014-11-04 20:37:59 -0800
commit9bc105fca37faf4c868987b3a22992e39e4348f2 (patch)
tree4116b76dc60cb3271cbc572c5d1e85d86ff6b3b1 /res/layout
parent60e2e3ff9ee15841099cd057895db838bda0a8d9 (diff)
downloadandroid_packages_apps_Gallery2-9bc105fca37faf4c868987b3a22992e39e4348f2.tar.gz
android_packages_apps_Gallery2-9bc105fca37faf4c868987b3a22992e39e4348f2.tar.bz2
android_packages_apps_Gallery2-9bc105fca37faf4c868987b3a22992e39e4348f2.zip
Gallery2: support live streaming and bookmarks
(cherry picked new files from commit id 990c6d43ea7c184846e19d41bef0d93aee4e581b) Change-Id: Idc254cf0f7e8a9b492203313fa63349d07d19d5c
Diffstat (limited to 'res/layout')
-rwxr-xr-xres/layout/bookmark.xml22
-rwxr-xr-xres/layout/bookmark_edit_dialog.xml37
-rwxr-xr-xres/layout/bookmark_item.xml21
3 files changed, 80 insertions, 0 deletions
diff --git a/res/layout/bookmark.xml b/res/layout/bookmark.xml
new file mode 100755
index 000000000..9b765d4d9
--- /dev/null
+++ b/res/layout/bookmark.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <ListView
+ android:id="@android:id/list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+ <TextView
+ android:id="@android:id/empty"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_centerInParent="true"
+ android:paddingBottom="30dip"
+ android:gravity ="center"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:text="@string/bookmark_empty"
+ android:visibility="gone"
+ />
+</FrameLayout>
diff --git a/res/layout/bookmark_edit_dialog.xml b/res/layout/bookmark_edit_dialog.xml
new file mode 100755
index 000000000..fa1439cdb
--- /dev/null
+++ b/res/layout/bookmark_edit_dialog.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="8dip"
+ android:orientation="vertical">
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/textAppearanceSmallInverse"
+ android:text="@string/bookmark_title" />
+ <EditText
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dip"
+ android:singleLine="true"
+ android:inputType="text"
+ android:scrollHorizontally="true" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?android:attr/textAppearanceSmallInverse"
+ android:text="@string/bookmark_location" />
+ <EditText
+ android:id="@+id/data"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="2dip"
+ android:singleLine="true"
+ android:inputType="textUri"
+ android:scrollHorizontally="true" />
+ </LinearLayout>
+</ScrollView> \ No newline at end of file
diff --git a/res/layout/bookmark_item.xml b/res/layout/bookmark_item.xml
new file mode 100755
index 000000000..a743e9e17
--- /dev/null
+++ b/res/layout/bookmark_item.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/panel"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="6dip"
+ android:orientation="vertical"
+ >
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:singleLine="true"
+ />
+ <TextView
+ android:id="@+id/data"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ />
+</LinearLayout>