Automated import from //branches/donutburger/...@140648,140648
Romain Guy [Wed, 25 Mar 2009 01:08:40 +0000 (18:08 -0700)]
AndroidManifest.xml
res/layout/day_activity.xml
res/layout/month_activity.xml
res/layout/week_activity.xml
res/values/styles.xml

index aa4418b..c153eae 100644 (file)
         </activity>
 
         <activity android:name="MonthActivity" android:label="@string/month_view"
-            android:theme="@android:style/Theme.Light.NoTitleBar" />
+            android:theme="@style/CalendarTheme" />
         <activity android:name="WeekActivity" android:label="@string/week_view"
-            android:theme="@android:style/Theme.Light.NoTitleBar" />
+            android:theme="@style/CalendarTheme" />
         <activity android:name="DayActivity" android:label="@string/day_view"
-            android:theme="@android:style/Theme.Light.NoTitleBar" />
+            android:theme="@style/CalendarTheme" />
         <activity android:name="AgendaActivity" android:label="@string/agenda_view" 
             android:theme="@android:style/Theme.Light"
             android:exported="true" />
index 93b3ce1..2a73a3c 100644 (file)
             android:layout_height="wrap_content" />
     </RelativeLayout>
 
-    <ViewSwitcher android:id="@+id/switcher"
+    <FrameLayout
         android:layout_width="fill_parent"
-        android:layout_height="fill_parent" />
+        android:layout_height="0dip"
+        android:layout_weight="1.0"
+        android:foregroundGravity="fill_horizontal|top"
+        android:foreground="@*android:drawable/title_bar_shadow">
+        <ViewSwitcher android:id="@+id/switcher"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent" />
+    </FrameLayout>
 </LinearLayout>
index fe9c651..8dc1fb0 100644 (file)
         android:layout_height="1dip"
         android:background="@android:drawable/divider_horizontal_dark" />
 
-    <ViewSwitcher android:id="@+id/switcher"
+    <FrameLayout
         android:layout_width="fill_parent"
-        android:layout_height="fill_parent" />
+        android:layout_height="0dip"
+        android:layout_weight="1.0"
+        android:foregroundGravity="fill_horizontal|top"
+        android:foreground="@*android:drawable/title_bar_shadow">
+        <ViewSwitcher android:id="@+id/switcher"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent" />
+    </FrameLayout>
 </LinearLayout>
index 93b3ce1..2a73a3c 100644 (file)
             android:layout_height="wrap_content" />
     </RelativeLayout>
 
-    <ViewSwitcher android:id="@+id/switcher"
+    <FrameLayout
         android:layout_width="fill_parent"
-        android:layout_height="fill_parent" />
+        android:layout_height="0dip"
+        android:layout_weight="1.0"
+        android:foregroundGravity="fill_horizontal|top"
+        android:foreground="@*android:drawable/title_bar_shadow">
+        <ViewSwitcher android:id="@+id/switcher"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent" />
+    </FrameLayout>
 </LinearLayout>
index bcc04c2..57a8d0c 100644 (file)
@@ -68,4 +68,8 @@
         <item name="android:textColor">@android:color/white</item>
     </style>
 
+    <style name="CalendarTheme" parent="android:Theme.Light.NoTitleBar">
+        <item name="android:windowContentOverlay">@null</item>
+    </style>
+
 </resources>