Placeholders for normal, focused and pressed states for widget photo frame
Additionally made the picture focusable
Bug:3216459
Change-Id: I2b2730badf0c9d59839a69a6e6769cd557081b5e
diff --git a/res/drawable-hdpi/photo_frame_widget_focused_holo_light.9.png b/res/drawable-hdpi/photo_frame_widget_focused_holo_light.9.png
new file mode 100644
index 0000000..2dd0b71
--- /dev/null
+++ b/res/drawable-hdpi/photo_frame_widget_focused_holo_light.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photo_frame_widget_holo_light.9.png b/res/drawable-hdpi/photo_frame_widget_normal_holo_light.9.png
similarity index 100%
rename from res/drawable-hdpi/photo_frame_widget_holo_light.9.png
rename to res/drawable-hdpi/photo_frame_widget_normal_holo_light.9.png
Binary files differ
diff --git a/res/drawable-hdpi/photo_frame_widget_pressed_holo_light.9.png b/res/drawable-hdpi/photo_frame_widget_pressed_holo_light.9.png
new file mode 100644
index 0000000..d4021cc
--- /dev/null
+++ b/res/drawable-hdpi/photo_frame_widget_pressed_holo_light.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photo_frame_widget_focused_holo_light.9.png b/res/drawable-mdpi/photo_frame_widget_focused_holo_light.9.png
new file mode 100644
index 0000000..ea5c0a0
--- /dev/null
+++ b/res/drawable-mdpi/photo_frame_widget_focused_holo_light.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photo_frame_widget_holo_light.9.png b/res/drawable-mdpi/photo_frame_widget_normal_holo_light.9.png
similarity index 100%
rename from res/drawable-mdpi/photo_frame_widget_holo_light.9.png
rename to res/drawable-mdpi/photo_frame_widget_normal_holo_light.9.png
Binary files differ
diff --git a/res/drawable-mdpi/photo_frame_widget_pressed_holo_light.9.png b/res/drawable-mdpi/photo_frame_widget_pressed_holo_light.9.png
new file mode 100644
index 0000000..d8f139c
--- /dev/null
+++ b/res/drawable-mdpi/photo_frame_widget_pressed_holo_light.9.png
Binary files differ
diff --git a/res/drawable/photo_frame_widget_holo_light.xml b/res/drawable/photo_frame_widget_holo_light.xml
new file mode 100644
index 0000000..a320e9e
--- /dev/null
+++ b/res/drawable/photo_frame_widget_holo_light.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true"
+ android:drawable="@drawable/photo_frame_widget_pressed_holo_light" />
+ <item android:state_focused="true"
+ android:drawable="@drawable/photo_frame_widget_focused_holo_light" />
+ <item
+ android:drawable="@drawable/photo_frame_widget_normal_holo_light" />
+</selector>
diff --git a/res/layout/social_widget.xml b/res/layout/social_widget.xml
index eaed31e..7fd66a8 100644
--- a/res/layout/social_widget.xml
+++ b/res/layout/social_widget.xml
@@ -26,10 +26,9 @@
<ImageView
android:id="@+id/image"
android:padding="10dip"
- android:focusable="false"
android:layout_width="match_parent"
android:layout_height="match_parent" />
- <ImageView
+ <ImageButton
android:id="@+id/border"
android:background="@drawable/photo_frame_widget_holo_light"
android:layout_width="match_parent"