summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorLikai Ding <likaid@codeaurora.org>2013-08-15 15:02:24 +0800
committeremancebo <emancebo@cyngn.com>2014-09-04 10:40:18 -0700
commit93a66b850bdb0a06ad7fda0549eb47b8123292bc (patch)
treee7a0d0ce434eff6e9757f728fc80d413fe34dce2 /res
parentbce738c2b78bd4ec6dbdfc8f808059f882e59595 (diff)
downloadandroid_packages_apps_Gallery2-93a66b850bdb0a06ad7fda0549eb47b8123292bc.tar.gz
android_packages_apps_Gallery2-93a66b850bdb0a06ad7fda0549eb47b8123292bc.tar.bz2
android_packages_apps_Gallery2-93a66b850bdb0a06ad7fda0549eb47b8123292bc.zip
Gallery2: support live streaming and bookmarks
(cherry picked new files from commit id 990c6d43ea7c184846e19d41bef0d93aee4e581b) Change-Id: Idc254cf0f7e8a9b492203313fa63349d07d19d5c
Diffstat (limited to 'res')
-rwxr-xr-xres/drawable-hdpi/ic_menu_display_bookmark.pngbin0 -> 1717 bytes
-rwxr-xr-xres/drawable-mdpi/ic_menu_display_bookmark.pngbin0 -> 1709 bytes
-rwxr-xr-xres/drawable-xhdpi/ic_menu_display_bookmark.pngbin0 -> 2460 bytes
-rwxr-xr-xres/layout/bookmark.xml22
-rwxr-xr-xres/layout/bookmark_edit_dialog.xml37
-rwxr-xr-xres/layout/bookmark_item.xml21
-rwxr-xr-xres/xml/rtsp_settings_preferences.xml89
7 files changed, 169 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_menu_display_bookmark.png b/res/drawable-hdpi/ic_menu_display_bookmark.png
new file mode 100755
index 000000000..a5118ea85
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_display_bookmark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_display_bookmark.png b/res/drawable-mdpi/ic_menu_display_bookmark.png
new file mode 100755
index 000000000..a3acdd64b
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_display_bookmark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_display_bookmark.png b/res/drawable-xhdpi/ic_menu_display_bookmark.png
new file mode 100755
index 000000000..4ad8414be
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_display_bookmark.png
Binary files differ
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>
diff --git a/res/xml/rtsp_settings_preferences.xml b/res/xml/rtsp_settings_preferences.xml
new file mode 100755
index 000000000..b15080dfa
--- /dev/null
+++ b/res/xml/rtsp_settings_preferences.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+write by lhy
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <PreferenceCategory
+ android:title="@string/rtp">
+
+ <EditTextPreference
+ android:order="1"
+ android:key="rtp_min_port"
+ android:title="@string/rtp_min_port"
+ android:summary=""
+ android:inputType="number"
+ android:maxLength="5"
+ android:dialogTitle="@string/set_rtp_min_port" />
+
+ <EditTextPreference
+ android:order="2"
+ android:key="rtp_max_port"
+ android:title="@string/rtp_max_port"
+ android:summary=""
+ android:inputType="number"
+ android:maxLength="5"
+ android:dialogTitle="@string/rtp_max_port" />
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:title="@string/rtcp">
+
+ <EditTextPreference
+ android:order="3"
+ android:key="rtcp_min_port"
+ android:title="@string/rtcp_min_port"
+ android:summary=""
+ android:inputType="number"
+ android:maxLength="5"
+ android:dialogTitle="@string/set_rtcp_min_port" />
+
+ <EditTextPreference
+ android:order="4"
+ android:key="rtcp_max_port"
+ android:title="@string/rtcp_max_port"
+ android:summary=""
+ android:inputType="number"
+ android:maxLength="5"
+ android:dialogTitle="@string/rtcp_max_port" />
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:title="@string/buffer_size">
+
+ <EditTextPreference
+ android:order="5"
+ android:key="buffer_size"
+ android:title="@string/buffer_size"
+ android:summary=""
+ android:inputType="number"
+ android:maxLength="5"
+ android:dialogTitle="@string/set_buffer_size" />
+
+ </PreferenceCategory>
+
+ <PreferenceCategory android:title="@string/apn">
+ <PreferenceScreen
+ android:key="apn"
+ android:title="@string/apn">
+ <!--
+ <intent
+ android:action="android.intent.action.MAIN"
+ android:targetPackage="com.android.settings"
+ android:targetClass="com.android.settings.ApnSettings" />
+ -->
+ </PreferenceScreen>
+ <!--
+ <ListPreference
+ android:order="6"
+ android:key="apn"
+ android:title="@string/apn"
+ android:entries="@array/apn_entries"
+ android:entryValues="@array/apn_values"
+ android:dialogTitle="@string/set_apn" />
+ -->
+ </PreferenceCategory>
+
+
+</PreferenceScreen>