b/2099363 Added selected and pressed background assets for Calendar Widget
diff --git a/res/drawable/appwidget_bg.xml b/res/drawable/appwidget_bg.xml
new file mode 100644
index 0000000..ae27b0b
--- /dev/null
+++ b/res/drawable/appwidget_bg.xml
@@ -0,0 +1,22 @@
+<?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_window_focused="false" android:drawable="@drawable/appwidget_bg_normal" />
+    <item android:state_pressed="true" android:drawable="@drawable/appwidget_bg_pressed" />
+    <item android:state_focused="true" android:drawable="@drawable/appwidget_bg_selected" />
+    <item android:drawable="@drawable/appwidget_bg_normal" />
+</selector>
diff --git a/res/drawable/appwidget_bg.9.png b/res/drawable/appwidget_bg_normal.9.png
similarity index 100%
rename from res/drawable/appwidget_bg.9.png
rename to res/drawable/appwidget_bg_normal.9.png
Binary files differ
diff --git a/res/drawable/appwidget_bg_pressed.9.png b/res/drawable/appwidget_bg_pressed.9.png
new file mode 100644
index 0000000..9d730bd
--- /dev/null
+++ b/res/drawable/appwidget_bg_pressed.9.png
Binary files differ
diff --git a/res/drawable/appwidget_bg_selected.9.png b/res/drawable/appwidget_bg_selected.9.png
new file mode 100644
index 0000000..5da971e
--- /dev/null
+++ b/res/drawable/appwidget_bg_selected.9.png
Binary files differ
diff --git a/res/layout-land/agenda_appwidget.xml b/res/layout-land/agenda_appwidget.xml
index c3b62f0..9da7a5e 100644
--- a/res/layout-land/agenda_appwidget.xml
+++ b/res/layout-land/agenda_appwidget.xml
@@ -19,7 +19,8 @@
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:background="@drawable/appwidget_bg"
-    >
+    android:focusable="true"
+    android:clickable="true">
 
     <TextView
         android:id="@+id/no_events"
diff --git a/res/layout/agenda_appwidget.xml b/res/layout/agenda_appwidget.xml
index 9010f57..a210337 100644
--- a/res/layout/agenda_appwidget.xml
+++ b/res/layout/agenda_appwidget.xml
@@ -18,7 +18,9 @@
     android:id="@+id/agenda_appwidget"
     android:layout_width="@dimen/appwidget_width"
     android:layout_height="@dimen/appwidget_height"
-    android:background="@drawable/appwidget_bg">
+    android:background="@drawable/appwidget_bg"
+    android:focusable="true"
+    android:clickable="true">
 
     <TextView
         android:id="@+id/no_events"