diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml index 561096e61..a9d66ff70 100644 --- a/samples/ApiDemos/AndroidManifest.xml +++ b/samples/ApiDemos/AndroidManifest.xml @@ -35,6 +35,8 @@ + + + android:label="@string/fragment_alert_dialog" + android:enabled="@bool/atLeastHoneycomb"> @@ -253,7 +257,8 @@ + android:windowSoftInputMode="stateUnchanged" + android:enabled="@bool/atLeastHoneycomb"> @@ -261,7 +266,8 @@ + android:label="@string/fragment_context_menu" + android:enabled="@bool/atLeastHoneycomb"> @@ -269,7 +275,8 @@ + android:label="@string/fragment_dialog" + android:enabled="@bool/atLeastHoneycomb"> @@ -277,7 +284,8 @@ + android:label="@string/fragment_dialog_or_activity" + android:enabled="@bool/atLeastHoneycomb"> @@ -285,17 +293,20 @@ + android:label="@string/fragment_layout" + android:enabled="@bool/atLeastHoneycomb"> - + + android:label="@string/fragment_list_cursor_loader" + android:enabled="@bool/atLeastHoneycomb"> @@ -303,7 +314,8 @@ + android:label="@string/fragment_list_array" + android:enabled="@bool/atLeastHoneycomb"> @@ -311,7 +323,8 @@ + android:label="@string/fragment_menu" + android:enabled="@bool/atLeastHoneycomb"> @@ -319,7 +332,8 @@ + android:label="@string/fragment_retain_instance" + android:enabled="@bool/atLeastHoneycomb"> @@ -327,7 +341,8 @@ + android:label="@string/fragment_receive_result" + android:enabled="@bool/atLeastHoneycomb"> @@ -335,7 +350,8 @@ + android:label="@string/fragment_stack" + android:enabled="@bool/atLeastHoneycomb"> @@ -346,7 +362,8 @@ + android:label="@string/loader_throttle" + android:enabled="@bool/atLeastHoneycomb"> @@ -719,14 +736,17 @@ + android:label="@string/action_bar_mechanics" + android:enabled="@bool/atLeastHoneycomb"> - + @@ -734,8 +754,9 @@ + android:label="@string/action_bar_display_options" + android:logo="@drawable/apidemo_androidlogo" + android:enabled="@bool/atLeastHoneycomb"> @@ -743,7 +764,8 @@ + android:label="@string/action_bar_tabs" + android:enabled="@bool/atLeastHoneycomb"> @@ -755,7 +777,8 @@ + android:label="@string/fragment_preferences" + android:enabled="@bool/atLeastHoneycomb"> @@ -763,7 +786,8 @@ + android:label="@string/preference_with_headers" + android:enabled="@bool/atLeastHoneycomb"> @@ -821,7 +845,9 @@ - + @@ -912,8 +938,10 @@ - + @@ -921,24 +949,29 @@ + android:label="Animation/Cloning" + android:hardwareAccelerated="false" + android:enabled="@bool/atLeastHoneycomb"> - + - + @@ -946,8 +979,9 @@ + android:label="Animation/Bouncing Balls" + android:hardwareAccelerated="false" + android:enabled="@bool/atLeastHoneycomb"> @@ -955,23 +989,28 @@ + android:label="Animation/Custom Evaluator" + android:hardwareAccelerated="false" + android:enabled="@bool/atLeastHoneycomb"> - + - + @@ -979,8 +1018,9 @@ + android:label="Animation/Multiple Properties" + android:hardwareAccelerated="false" + android:enabled="@bool/atLeastHoneycomb"> @@ -988,7 +1028,8 @@ + android:label="Animation/Layout Animations" + android:enabled="@bool/atLeastHoneycomb"> @@ -996,7 +1037,8 @@ + android:label="Animation/Hide-Show Animations" + android:enabled="@bool/atLeastHoneycomb"> @@ -1004,7 +1046,8 @@ + android:label="Animation/Default Layout Animations" + android:enabled="@bool/atLeastHoneycomb"> @@ -1684,7 +1727,8 @@ + android:theme="@android:style/Theme.Holo.Light" + android:enabled="@bool/atLeastHoneycomb"> @@ -1693,7 +1737,26 @@ + android:theme="@android:style/Theme.Holo" + android:enabled="@bool/atLeastHoneycomb"> + + + + + + + + + + + + + + @@ -1889,7 +1952,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