summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-02-15 14:32:08 -0800
committerJohn Reck <jreck@google.com>2013-02-22 15:09:35 -0800
commit01ded9e9f39af6b09d807521a647272ad4e296cd (patch)
tree4c3c28868d01c8a2e8171f8665d798005f1a3087
parente561dd49f4cafe6264733814932550734919a532 (diff)
downloadandroid_packages_apps_Snap-01ded9e9f39af6b09d807521a647272ad4e296cd.tar.gz
android_packages_apps_Snap-01ded9e9f39af6b09d807521a647272ad4e296cd.tar.bz2
android_packages_apps_Snap-01ded9e9f39af6b09d807521a647272ad4e296cd.zip
Start of photos
Change-Id: Id53dd96d8873e0fe6c2685e07cd7bdc0cde7ea75
-rw-r--r--res/layout/photo_set.xml22
-rw-r--r--res/menu/gallery.xml23
-rw-r--r--res/values-v14/styles.xml2
-rw-r--r--res/values/strings.xml8
4 files changed, 55 insertions, 0 deletions
diff --git a/res/layout/photo_set.xml b/res/layout/photo_set.xml
new file mode 100644
index 000000000..2bb97bbac
--- /dev/null
+++ b/res/layout/photo_set.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"
+ android:paddingLeft="8dp"
+ android:paddingRight="8dp" >
+
+ <ListView
+ android:id="@id/android:list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:drawSelectorOnTop="true" />
+
+ <TextView
+ android:id="@id/android:empty"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:text="@string/empty_album" />
+
+</FrameLayout> \ No newline at end of file
diff --git a/res/menu/gallery.xml b/res/menu/gallery.xml
new file mode 100644
index 000000000..dc36787c8
--- /dev/null
+++ b/res/menu/gallery.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+ <item
+ android:id="@+id/menu_camera"
+ android:icon="@android:drawable/ic_menu_camera"
+ android:showAsAction="ifRoom"
+ android:title="@string/menu_camera"/>
+ <item
+ android:id="@+id/menu_search"
+ android:icon="@android:drawable/ic_menu_search"
+ android:showAsAction="ifRoom"
+ android:title="@string/menu_search"/>
+ <item
+ android:id="@+id/menu_settings"
+ android:icon="@android:drawable/ic_menu_preferences"
+ android:showAsAction="never"
+ android:title="@string/settings"/>
+ <item
+ android:id="@+id/menu_help"
+ android:icon="@android:drawable/ic_menu_help"
+ android:showAsAction="never"
+ android:title="@string/help"/>
+</menu> \ No newline at end of file
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml
index 18f3440f3..18610cbfc 100644
--- a/res/values-v14/styles.xml
+++ b/res/values-v14/styles.xml
@@ -22,4 +22,6 @@
<style name="ActionBarTwoLineItem">
<item name="android:background">?android:attr/activatedBackgroundIndicator</item>
</style>
+ <style name="Theme.Photos.Gallery" parent="android:Theme.Holo.Light">
+ </style>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index fae3466cc..263b8b15b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1002,4 +1002,12 @@ CHAR LIMIT = NONE] -->
<!-- Positive answer for first run dialog asking if the user wants to remember photo locations [CHAR LIMIT = 20] -->
<string name="remember_location_yes">Yes</string>
+ <!-- Menu item to launch the camera app [CHAR LIMIT=25] -->
+ <string name="menu_camera">Camera</string>
+ <!-- Menu item to search for photos [CHAR LIMIT=25] -->
+ <string name="menu_search">Search</string>
+ <!-- Title for the all photos tab [CHAR LIMIT=25] -->
+ <string name="tab_photos">Photos</string>
+ <!-- Title for the albums tab [CHAR LIMIT=25] -->
+ <string name="tab_albums">Albums</string>
</resources>