summaryrefslogtreecommitdiffstats
path: root/res/layout/photo_frame.xml
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-04-17 23:28:43 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-04-17 23:28:43 -0700
commit0d1eba0d115ffc12576cc441239e76d97f755173 (patch)
treef3d66971d682778db8f96e40fde33d20a290f8e0 /res/layout/photo_frame.xml
parentcbffaf845c73c28a56bed7bbc8042f3fbaa04031 (diff)
parent2a5e936116cd6adcc4a461091e101b3704d4e6c0 (diff)
downloadandroid_packages_apps_Gallery2-0d1eba0d115ffc12576cc441239e76d97f755173.tar.gz
android_packages_apps_Gallery2-0d1eba0d115ffc12576cc441239e76d97f755173.tar.bz2
android_packages_apps_Gallery2-0d1eba0d115ffc12576cc441239e76d97f755173.zip
Merge "Gallery2: fix photo widget has not sync after delete the photo." into android_ui.lnx.1.2-dev
Diffstat (limited to 'res/layout/photo_frame.xml')
-rwxr-xr-xres/layout/photo_frame.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/res/layout/photo_frame.xml b/res/layout/photo_frame.xml
index 63faf539d..ede942f6b 100755
--- a/res/layout/photo_frame.xml
+++ b/res/layout/photo_frame.xml
@@ -21,6 +21,28 @@
android:paddingBottom="23dp"
android:paddingStart="12dp"
android:paddingEnd="12dp">
+
+ <RelativeLayout
+ android:id="@+id/appwidget_empty_photo"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone">
+
+ <FrameLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:background="@drawable/appwidget_photo_border">
+
+ <TextView
+ android:id="@id/appwidget_photo_item"
+ android:layout_width="@dimen/stack_photo_width"
+ android:layout_height="@dimen/stack_photo_height"
+ android:gravity="center"
+ android:text="@string/appwidget_empty_text"
+ android:textColor="@android:color/black" />
+ </FrameLayout>
+ </RelativeLayout>
<ImageView android:id="@+id/photo"
android:layout_gravity="center"
android:layout_width="wrap_content"