diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml
index d91e58c2b..35a49ddb6 100644
--- a/samples/ApiDemos/AndroidManifest.xml
+++ b/samples/ApiDemos/AndroidManifest.xml
@@ -36,6 +36,8 @@
+
+
+ android:label="@string/fragment_alert_dialog"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -254,7 +258,8 @@
+ android:windowSoftInputMode="stateUnchanged"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -262,7 +267,8 @@
+ android:label="@string/fragment_context_menu"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -270,7 +276,8 @@
+ android:label="@string/fragment_dialog"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -278,7 +285,8 @@
+ android:label="@string/fragment_dialog_or_activity"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -286,17 +294,20 @@
+ android:label="@string/fragment_layout"
+ android:enabled="@bool/atLeastHoneycomb">
-
+
+ android:label="@string/fragment_list_cursor_loader"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -304,7 +315,8 @@
+ android:label="@string/fragment_list_array"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -312,7 +324,8 @@
+ android:label="@string/fragment_menu"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -320,7 +333,8 @@
+ android:label="@string/fragment_retain_instance"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -328,7 +342,8 @@
+ android:label="@string/fragment_receive_result"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -336,7 +351,8 @@
+ android:label="@string/fragment_stack"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -347,7 +363,8 @@
+ android:label="@string/loader_throttle"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -720,14 +737,17 @@
+ android:label="@string/action_bar_mechanics"
+ android:enabled="@bool/atLeastHoneycomb">
-
+
@@ -735,8 +755,9 @@
+ android:label="@string/action_bar_display_options"
+ android:logo="@drawable/apidemo_androidlogo"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -744,7 +765,8 @@
+ android:label="@string/action_bar_tabs"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -756,7 +778,8 @@
+ android:label="@string/fragment_preferences"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -764,7 +787,8 @@
+ android:label="@string/preference_with_headers"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -822,7 +846,9 @@
-
+
@@ -913,8 +939,10 @@
-
+
@@ -922,24 +950,29 @@
+ android:label="Animation/Cloning"
+ android:hardwareAccelerated="false"
+ android:enabled="@bool/atLeastHoneycomb">
-
+
-
+
@@ -947,8 +980,9 @@
+ android:label="Animation/Bouncing Balls"
+ android:hardwareAccelerated="false"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -956,23 +990,28 @@
+ android:label="Animation/Custom Evaluator"
+ android:hardwareAccelerated="false"
+ android:enabled="@bool/atLeastHoneycomb">
-
+
-
+
@@ -980,8 +1019,9 @@
+ android:label="Animation/Multiple Properties"
+ android:hardwareAccelerated="false"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -989,7 +1029,8 @@
+ android:label="Animation/Layout Animations"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -997,7 +1038,8 @@
+ android:label="Animation/Hide-Show Animations"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -1005,7 +1047,8 @@
+ android:label="Animation/Default Layout Animations"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -1685,7 +1728,8 @@
+ android:theme="@android:style/Theme.Holo.Light"
+ android:enabled="@bool/atLeastHoneycomb">
@@ -1694,7 +1738,26 @@
+ android:theme="@android:style/Theme.Holo"
+ android:enabled="@bool/atLeastHoneycomb">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1890,7 +1953,8 @@
+ android:hardwareAccelerated="false"
+ android:enabled="@bool/atLeastHoneycomb">
diff --git a/samples/ApiDemos/res/layout/controls_1.xml b/samples/ApiDemos/res/layout/controls_1.xml
index 63a2de122..e280188a2 100644
--- a/samples/ApiDemos/res/layout/controls_1.xml
+++ b/samples/ApiDemos/res/layout/controls_1.xml
@@ -139,6 +139,14 @@
android:text="@string/listSeparatorTextViewStyle"
android:layout_marginTop="5dip"
/>
+
+
diff --git a/samples/ApiDemos/res/values-v11/bools.xml b/samples/ApiDemos/res/values-v11/bools.xml
new file mode 100644
index 000000000..5ea02dd99
--- /dev/null
+++ b/samples/ApiDemos/res/values-v11/bools.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ true
+
diff --git a/samples/ApiDemos/res/values-v11/styles.xml b/samples/ApiDemos/res/values-v11/styles.xml
new file mode 100644
index 000000000..aa8f2ce11
--- /dev/null
+++ b/samples/ApiDemos/res/values-v11/styles.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff --git a/samples/ApiDemos/res/values/bools.xml b/samples/ApiDemos/res/values/bools.xml
new file mode 100644
index 000000000..0faffb3a6
--- /dev/null
+++ b/samples/ApiDemos/res/values/bools.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ false
+
diff --git a/samples/ApiDemos/res/values/styles.xml b/samples/ApiDemos/res/values/styles.xml
index 8cc831287..1a295baf4 100644
--- a/samples/ApiDemos/res/values/styles.xml
+++ b/samples/ApiDemos/res/values/styles.xml
@@ -15,6 +15,21 @@
-->
+
+ #b0b0ff
+
+
+
+
+
diff --git a/samples/ApiDemos/src/com/example/android/apis/view/Controls5.java b/samples/ApiDemos/src/com/example/android/apis/view/Controls5.java
new file mode 100644
index 000000000..dcc515b35
--- /dev/null
+++ b/samples/ApiDemos/src/com/example/android/apis/view/Controls5.java
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2011 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.
+ */
+
+package com.example.android.apis.view;
+
+public class Controls5 extends Controls1 {}
diff --git a/samples/ApiDemos/src/com/example/android/apis/view/Controls6.java b/samples/ApiDemos/src/com/example/android/apis/view/Controls6.java
new file mode 100644
index 000000000..3002259ee
--- /dev/null
+++ b/samples/ApiDemos/src/com/example/android/apis/view/Controls6.java
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2011 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.
+ */
+
+package com.example.android.apis.view;
+
+public class Controls6 extends Controls1 {}
diff --git a/samples/ApiDemos/src/com/example/android/apis/view/_index.html b/samples/ApiDemos/src/com/example/android/apis/view/_index.html
index 0a435c15f..e72890a92 100644
--- a/samples/ApiDemos/src/com/example/android/apis/view/_index.html
+++ b/samples/ApiDemos/src/com/example/android/apis/view/_index.html
@@ -259,21 +259,31 @@
Controls
- - 1. Theme Light
+ - 1. Light Theme
- Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light theme.
- - 2. Theme Dark
+ - 2. Dark Theme
- Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark theme.
- - 3. Theme Holographic Light
+ - 3. Holographic Light Theme
- Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light holographic theme.
- - 4. Theme Holographic Dark
+ - 4. Holographic Dark Theme
- Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark holographic theme.
+
+ - 5. Custom Theme
+ - Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using a custom
+ theme based on the light theme.
+
+
+ - 6. Holo or Old Theme
+ - Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using a custom
+ theme that uses either the traditional or holo theme depending on the version of the platform.
+
Auto Complete