• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revisione63a4b58a26cdce8b62984c83763dafdf282895b (tree)
Time2011-01-17 07:29:28
AuthorDianne Hackborn <hackbod@goog...>
CommiterDianne Hackborn

Log Message

Add some more API demos for themes.

Shows how to make a basic custom theme with a custom background,
and a theme that selects between the old theme and Holo.

Also use a little trick to make the API demos for HC specific
samples be hidden on older versions of the platform.

Change-Id: Ie53e8103147e81975fca73b96bda989a00504534

Change Summary

Incremental Difference

--- a/samples/ApiDemos/AndroidManifest.xml
+++ b/samples/ApiDemos/AndroidManifest.xml
@@ -35,6 +35,8 @@
3535 <!-- For android.media.audiofx.Visualizer -->
3636 <uses-permission android:name="android.permission.RECORD_AUDIO" />
3737
38+ <uses-sdk android:minSdkVersion="4" />
39+
3840 <!-- We will request access to the camera, saying we require a camera
3941 of some sort but not one with autofocus capability. -->
4042 <!--
@@ -152,7 +154,8 @@
152154 </activity>
153155
154156 <activity android:name=".app.ActivityRecreate"
155- android:label="@string/activity_recreate">
157+ android:label="@string/activity_recreate"
158+ android:enabled="@bool/atLeastHoneycomb">
156159 <intent-filter>
157160 <action android:name="android.intent.action.MAIN" />
158161 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -244,7 +247,8 @@
244247 <!-- Fragment Samples -->
245248
246249 <activity android:name=".app.FragmentAlertDialog"
247- android:label="@string/fragment_alert_dialog">
250+ android:label="@string/fragment_alert_dialog"
251+ android:enabled="@bool/atLeastHoneycomb">
248252 <intent-filter>
249253 <action android:name="android.intent.action.MAIN" />
250254 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -253,7 +257,8 @@
253257
254258 <activity android:name=".app.FragmentHideShow"
255259 android:label="@string/fragment_hide_show"
256- android:windowSoftInputMode="stateUnchanged">
260+ android:windowSoftInputMode="stateUnchanged"
261+ android:enabled="@bool/atLeastHoneycomb">
257262 <intent-filter>
258263 <action android:name="android.intent.action.MAIN" />
259264 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -261,7 +266,8 @@
261266 </activity>
262267
263268 <activity android:name=".app.FragmentContextMenu"
264- android:label="@string/fragment_context_menu">
269+ android:label="@string/fragment_context_menu"
270+ android:enabled="@bool/atLeastHoneycomb">
265271 <intent-filter>
266272 <action android:name="android.intent.action.MAIN" />
267273 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -269,7 +275,8 @@
269275 </activity>
270276
271277 <activity android:name=".app.FragmentDialog"
272- android:label="@string/fragment_dialog">
278+ android:label="@string/fragment_dialog"
279+ android:enabled="@bool/atLeastHoneycomb">
273280 <intent-filter>
274281 <action android:name="android.intent.action.MAIN" />
275282 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -277,7 +284,8 @@
277284 </activity>
278285
279286 <activity android:name=".app.FragmentDialogOrActivity"
280- android:label="@string/fragment_dialog_or_activity">
287+ android:label="@string/fragment_dialog_or_activity"
288+ android:enabled="@bool/atLeastHoneycomb">
281289 <intent-filter>
282290 <action android:name="android.intent.action.MAIN" />
283291 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -285,17 +293,20 @@
285293 </activity>
286294
287295 <activity android:name=".app.FragmentLayout"
288- android:label="@string/fragment_layout">
296+ android:label="@string/fragment_layout"
297+ android:enabled="@bool/atLeastHoneycomb">
289298 <intent-filter>
290299 <action android:name="android.intent.action.MAIN" />
291300 <category android:name="android.intent.category.SAMPLE_CODE" />
292301 </intent-filter>
293302 </activity>
294303
295- <activity android:name=".app.FragmentLayout$DetailsActivity" />
304+ <activity android:name=".app.FragmentLayout$DetailsActivity"
305+ android:enabled="@bool/atLeastHoneycomb" />
296306
297307 <activity android:name=".app.FragmentListCursorLoader"
298- android:label="@string/fragment_list_cursor_loader">
308+ android:label="@string/fragment_list_cursor_loader"
309+ android:enabled="@bool/atLeastHoneycomb">
299310 <intent-filter>
300311 <action android:name="android.intent.action.MAIN" />
301312 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -303,7 +314,8 @@
303314 </activity>
304315
305316 <activity android:name=".app.FragmentListArray"
306- android:label="@string/fragment_list_array">
317+ android:label="@string/fragment_list_array"
318+ android:enabled="@bool/atLeastHoneycomb">
307319 <intent-filter>
308320 <action android:name="android.intent.action.MAIN" />
309321 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -311,7 +323,8 @@
311323 </activity>
312324
313325 <activity android:name=".app.FragmentMenu"
314- android:label="@string/fragment_menu">
326+ android:label="@string/fragment_menu"
327+ android:enabled="@bool/atLeastHoneycomb">
315328 <intent-filter>
316329 <action android:name="android.intent.action.MAIN" />
317330 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -319,7 +332,8 @@
319332 </activity>
320333
321334 <activity android:name=".app.FragmentRetainInstance"
322- android:label="@string/fragment_retain_instance">
335+ android:label="@string/fragment_retain_instance"
336+ android:enabled="@bool/atLeastHoneycomb">
323337 <intent-filter>
324338 <action android:name="android.intent.action.MAIN" />
325339 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -327,7 +341,8 @@
327341 </activity>
328342
329343 <activity android:name=".app.FragmentReceiveResult"
330- android:label="@string/fragment_receive_result">
344+ android:label="@string/fragment_receive_result"
345+ android:enabled="@bool/atLeastHoneycomb">
331346 <intent-filter>
332347 <action android:name="android.intent.action.MAIN" />
333348 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -335,7 +350,8 @@
335350 </activity>
336351
337352 <activity android:name=".app.FragmentStack"
338- android:label="@string/fragment_stack">
353+ android:label="@string/fragment_stack"
354+ android:enabled="@bool/atLeastHoneycomb">
339355 <intent-filter>
340356 <action android:name="android.intent.action.MAIN" />
341357 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -346,7 +362,8 @@
346362
347363 <!-- BEGIN_INCLUDE(loader_throttle) -->
348364 <activity android:name=".app.LoaderThrottle"
349- android:label="@string/loader_throttle">
365+ android:label="@string/loader_throttle"
366+ android:enabled="@bool/atLeastHoneycomb">
350367 <intent-filter>
351368 <action android:name="android.intent.action.MAIN" />
352369 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -719,14 +736,17 @@
719736
720737 <!-- Action Bar Samples -->
721738 <activity android:name=".app.ActionBarMechanics"
722- android:label="@string/action_bar_mechanics">
739+ android:label="@string/action_bar_mechanics"
740+ android:enabled="@bool/atLeastHoneycomb">
723741 <intent-filter>
724742 <action android:name="android.intent.action.MAIN" />
725743 <category android:name="android.intent.category.SAMPLE_CODE" />
726744 </intent-filter>
727745 </activity>
728746
729- <activity android:name=".app.ActionBarUsage" android:label="@string/action_bar_usage">
747+ <activity android:name=".app.ActionBarUsage"
748+ android:label="@string/action_bar_usage"
749+ android:enabled="@bool/atLeastHoneycomb">
730750 <intent-filter>
731751 <action android:name="android.intent.action.MAIN" />
732752 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -734,8 +754,9 @@
734754 </activity>
735755
736756 <activity android:name=".app.ActionBarDisplayOptions"
737- android:label="@string/action_bar_display_options"
738- android:logo="@drawable/apidemo_androidlogo">
757+ android:label="@string/action_bar_display_options"
758+ android:logo="@drawable/apidemo_androidlogo"
759+ android:enabled="@bool/atLeastHoneycomb">
739760 <intent-filter>
740761 <action android:name="android.intent.action.MAIN" />
741762 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -743,7 +764,8 @@
743764 </activity>
744765
745766 <activity android:name=".app.ActionBarTabs"
746- android:label="@string/action_bar_tabs">
767+ android:label="@string/action_bar_tabs"
768+ android:enabled="@bool/atLeastHoneycomb">
747769 <intent-filter>
748770 <action android:name="android.intent.action.MAIN" />
749771 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -755,7 +777,8 @@
755777 <!-- ************************************* -->
756778
757779 <activity android:name=".preference.FragmentPreferences"
758- android:label="@string/fragment_preferences">
780+ android:label="@string/fragment_preferences"
781+ android:enabled="@bool/atLeastHoneycomb">
759782 <intent-filter>
760783 <action android:name="android.intent.action.MAIN" />
761784 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -763,7 +786,8 @@
763786 </activity>
764787
765788 <activity android:name=".preference.PreferenceWithHeaders"
766- android:label="@string/preference_with_headers">
789+ android:label="@string/preference_with_headers"
790+ android:enabled="@bool/atLeastHoneycomb">
767791 <intent-filter>
768792 <action android:name="android.intent.action.MAIN" />
769793 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -821,7 +845,9 @@
821845 <!-- CONTENT PACKAGE SAMPLES -->
822846 <!-- ************************************* -->
823847
824- <activity android:name=".content.ClipboardSample" android:label="@string/activity_clipboard">
848+ <activity android:name=".content.ClipboardSample"
849+ android:label="@string/activity_clipboard"
850+ android:enabled="@bool/atLeastHoneycomb">
825851 <intent-filter>
826852 <action android:name="android.intent.action.MAIN" />
827853 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -912,8 +938,10 @@
912938 <!-- ANDROID.ANIMATION PACKAGE SAMPLES -->
913939 <!-- ************************************* -->
914940
915- <activity android:name=".animation.AnimationLoading" android:label="Animation/Loading"
916- android:hardwareAccelerated="false">
941+ <activity android:name=".animation.AnimationLoading"
942+ android:label="Animation/Loading"
943+ android:hardwareAccelerated="false"
944+ android:enabled="@bool/atLeastHoneycomb">
917945 <intent-filter>
918946 <action android:name="android.intent.action.MAIN" />
919947 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -921,24 +949,29 @@
921949 </activity>
922950
923951 <activity android:name=".animation.AnimationCloning"
924- android:label="Animation/Cloning"
925- android:hardwareAccelerated="false">
952+ android:label="Animation/Cloning"
953+ android:hardwareAccelerated="false"
954+ android:enabled="@bool/atLeastHoneycomb">
926955 <intent-filter>
927956 <action android:name="android.intent.action.MAIN" />
928957 <category android:name="android.intent.category.SAMPLE_CODE" />
929958 </intent-filter>
930959 </activity>
931960
932- <activity android:name=".animation.AnimationSeeking" android:label="Animation/Seeking"
933- android:hardwareAccelerated="false">
961+ <activity android:name=".animation.AnimationSeeking"
962+ android:label="Animation/Seeking"
963+ android:hardwareAccelerated="false"
964+ android:enabled="@bool/atLeastHoneycomb">
934965 <intent-filter>
935966 <action android:name="android.intent.action.MAIN" />
936967 <category android:name="android.intent.category.SAMPLE_CODE" />
937968 </intent-filter>
938969 </activity>
939970
940- <activity android:name=".animation.AnimatorEvents" android:label="Animation/Events"
941- android:hardwareAccelerated="false">
971+ <activity android:name=".animation.AnimatorEvents"
972+ android:label="Animation/Events"
973+ android:hardwareAccelerated="false"
974+ android:enabled="@bool/atLeastHoneycomb">
942975 <intent-filter>
943976 <action android:name="android.intent.action.MAIN" />
944977 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -946,8 +979,9 @@
946979 </activity>
947980
948981 <activity android:name=".animation.BouncingBalls"
949- android:label="Animation/Bouncing Balls"
950- android:hardwareAccelerated="false">
982+ android:label="Animation/Bouncing Balls"
983+ android:hardwareAccelerated="false"
984+ android:enabled="@bool/atLeastHoneycomb">
951985 <intent-filter>
952986 <action android:name="android.intent.action.MAIN" />
953987 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -955,23 +989,28 @@
955989 </activity>
956990
957991 <activity android:name=".animation.CustomEvaluator"
958- android:label="Animation/Custom Evaluator"
959- android:hardwareAccelerated="false">
992+ android:label="Animation/Custom Evaluator"
993+ android:hardwareAccelerated="false"
994+ android:enabled="@bool/atLeastHoneycomb">
960995 <intent-filter>
961996 <action android:name="android.intent.action.MAIN" />
962997 <category android:name="android.intent.category.SAMPLE_CODE" />
963998 </intent-filter>
964999 </activity>
9651000
966- <activity android:name=".animation.ListFlipper" android:label="Animation/View Flip">
1001+ <activity android:name=".animation.ListFlipper"
1002+ android:label="Animation/View Flip"
1003+ android:enabled="@bool/atLeastHoneycomb">
9671004 <intent-filter>
9681005 <action android:name="android.intent.action.MAIN" />
9691006 <category android:name="android.intent.category.SAMPLE_CODE" />
9701007 </intent-filter>
9711008 </activity>
9721009
973- <activity android:name=".animation.ReversingAnimation" android:label="Animation/Reversing"
974- android:hardwareAccelerated="false">
1010+ <activity android:name=".animation.ReversingAnimation"
1011+ android:label="Animation/Reversing"
1012+ android:hardwareAccelerated="false"
1013+ android:enabled="@bool/atLeastHoneycomb">
9751014 <intent-filter>
9761015 <action android:name="android.intent.action.MAIN" />
9771016 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -979,8 +1018,9 @@
9791018 </activity>
9801019
9811020 <activity android:name=".animation.MultiPropertyAnimation"
982- android:label="Animation/Multiple Properties"
983- android:hardwareAccelerated="false">
1021+ android:label="Animation/Multiple Properties"
1022+ android:hardwareAccelerated="false"
1023+ android:enabled="@bool/atLeastHoneycomb">
9841024 <intent-filter>
9851025 <action android:name="android.intent.action.MAIN" />
9861026 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -988,7 +1028,8 @@
9881028 </activity>
9891029
9901030 <activity android:name=".animation.LayoutAnimations"
991- android:label="Animation/Layout Animations">
1031+ android:label="Animation/Layout Animations"
1032+ android:enabled="@bool/atLeastHoneycomb">
9921033 <intent-filter>
9931034 <action android:name="android.intent.action.MAIN" />
9941035 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -996,7 +1037,8 @@
9961037 </activity>
9971038
9981039 <activity android:name=".animation.LayoutAnimationsHideShow"
999- android:label="Animation/Hide-Show Animations">
1040+ android:label="Animation/Hide-Show Animations"
1041+ android:enabled="@bool/atLeastHoneycomb">
10001042 <intent-filter>
10011043 <action android:name="android.intent.action.MAIN" />
10021044 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -1004,7 +1046,8 @@
10041046 </activity>
10051047
10061048 <activity android:name=".animation.LayoutAnimationsByDefault"
1007- android:label="Animation/Default Layout Animations">
1049+ android:label="Animation/Default Layout Animations"
1050+ android:enabled="@bool/atLeastHoneycomb">
10081051 <intent-filter>
10091052 <action android:name="android.intent.action.MAIN" />
10101053 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -1684,7 +1727,8 @@
16841727
16851728 <activity android:name=".view.Controls3"
16861729 android:label="Views/Controls/3. Holo Light Theme"
1687- android:theme="@android:style/Theme.Holo.Light">
1730+ android:theme="@android:style/Theme.Holo.Light"
1731+ android:enabled="@bool/atLeastHoneycomb">
16881732 <intent-filter>
16891733 <action android:name="android.intent.action.MAIN" />
16901734 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -1693,7 +1737,26 @@
16931737
16941738 <activity android:name=".view.Controls4"
16951739 android:label="Views/Controls/4. Holo Dark Theme"
1696- android:theme="@android:style/Theme.Holo">
1740+ android:theme="@android:style/Theme.Holo"
1741+ android:enabled="@bool/atLeastHoneycomb">
1742+ <intent-filter>
1743+ <action android:name="android.intent.action.MAIN" />
1744+ <category android:name="android.intent.category.SAMPLE_CODE" />
1745+ </intent-filter>
1746+ </activity>
1747+
1748+ <activity android:name=".view.Controls5"
1749+ android:label="Views/Controls/5. Custom Theme"
1750+ android:theme="@style/CustomTheme">
1751+ <intent-filter>
1752+ <action android:name="android.intent.action.MAIN" />
1753+ <category android:name="android.intent.category.SAMPLE_CODE" />
1754+ </intent-filter>
1755+ </activity>
1756+
1757+ <activity android:name=".view.Controls6"
1758+ android:label="Views/Controls/6. Holo or Old Theme"
1759+ android:theme="@style/ThemeHolo">
16971760 <intent-filter>
16981761 <action android:name="android.intent.action.MAIN" />
16991762 <category android:name="android.intent.category.SAMPLE_CODE" />
@@ -1889,7 +1952,8 @@
18891952
18901953 <activity android:name=".view.DragAndDropDemo"
18911954 android:label="Views/Drag and Drop"
1892- android:hardwareAccelerated="false">
1955+ android:hardwareAccelerated="false"
1956+ android:enabled="@bool/atLeastHoneycomb">
18931957 <intent-filter>
18941958 <action android:name="android.intent.action.MAIN" />
18951959 <category android:name="android.intent.category.SAMPLE_CODE" />
--- a/samples/ApiDemos/res/layout/controls_1.xml
+++ b/samples/ApiDemos/res/layout/controls_1.xml
@@ -139,6 +139,14 @@
139139 android:text="@string/listSeparatorTextViewStyle"
140140 android:layout_marginTop="5dip"
141141 />
142+
143+ <TextView
144+ android:layout_height="wrap_content"
145+ android:layout_width="wrap_content"
146+ android:layout_marginTop="400dip"
147+ android:textAppearance="?android:attr/textAppearanceLarge"
148+ android:text="(And all inside of a ScrollView!)"
149+ />
142150
143151 </LinearLayout>
144152
--- /dev/null
+++ b/samples/ApiDemos/res/values-v11/bools.xml
@@ -0,0 +1,20 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<!-- Copyright (C) 2011 The Android Open Source Project
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+-->
16+
17+<resources>
18+ <!-- True if running under Honeycomb or later. -->
19+ <bool name="atLeastHoneycomb">true</bool>
20+</resources>
--- /dev/null
+++ b/samples/ApiDemos/res/values-v11/styles.xml
@@ -0,0 +1,21 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<!-- Copyright (C) 2011 The Android Open Source Project
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+-->
16+
17+<resources>
18+ <!-- For API level 11 or later, the Holo theme is available and we prefer that. -->
19+ <style name="ThemeHolo" parent="android:Theme.Holo">
20+ </style>
21+</resources>
--- /dev/null
+++ b/samples/ApiDemos/res/values/bools.xml
@@ -0,0 +1,22 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<!-- Copyright (C) 2011 The Android Open Source Project
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+-->
16+
17+<resources>
18+ <!-- This resource is true if running under at least Honeycomb's
19+ API level. The default value is false; an alternative value
20+ for Honeycomb is true. -->
21+ <bool name="atLeastHoneycomb">false</bool>
22+</resources>
--- a/samples/ApiDemos/res/values/styles.xml
+++ b/samples/ApiDemos/res/values/styles.xml
@@ -15,6 +15,21 @@
1515 -->
1616
1717 <resources>
18+ <!-- A custom theme that is a variation on the light them with a different
19+ background color. -->
20+ <color name="custom_theme_color">#b0b0ff</color>
21+ <style name="CustomTheme" parent="android:Theme.Light">
22+ <item name="android:windowBackground">@color/custom_theme_color</item>
23+ <item name="android:colorBackground">@color/custom_theme_color</item>
24+ </style>
25+
26+ <!-- This is a theme that will adjust itself depending on the API version.
27+ The default definition is the safe one, using a theme that has always
28+ been defined. Look at values-11/styles.xml for a variation that is
29+ selected when the holographic theme is available. -->
30+ <style name="ThemeHolo" parent="android:Theme">
31+ </style>
32+
1833 <!-- Base application theme is the default theme. -->
1934 <style name="Theme" parent="android:Theme">
2035 </style>
--- /dev/null
+++ b/samples/ApiDemos/src/com/example/android/apis/view/Controls5.java
@@ -0,0 +1,19 @@
1+/*
2+ * Copyright (C) 2011 The Android Open Source Project
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+package com.example.android.apis.view;
18+
19+public class Controls5 extends Controls1 {}
--- /dev/null
+++ b/samples/ApiDemos/src/com/example/android/apis/view/Controls6.java
@@ -0,0 +1,19 @@
1+/*
2+ * Copyright (C) 2011 The Android Open Source Project
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+package com.example.android.apis.view;
18+
19+public class Controls6 extends Controls1 {}
--- 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 @@
259259
260260 <h3>Controls</h3>
261261 <dl>
262- <dt><a href="Controls1.html">1. Theme Light</a></dt>
262+ <dt><a href="Controls1.html">1. Light Theme</a></dt>
263263 <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light theme. </dd>
264264 </dl>
265265 <dl>
266- <dt><a href="Controls1.html">2. Theme Dark</a></dt>
266+ <dt><a href="Controls1.html">2. Dark Theme</a></dt>
267267 <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark theme. </dd>
268268 </dl>
269269 <dl>
270- <dt><a href="Controls1.html">3. Theme Holographic Light</a></dt>
270+ <dt><a href="Controls1.html">3. Holographic Light Theme</a></dt>
271271 <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light holographic theme. </dd>
272272 </dl>
273273 <dl>
274- <dt><a href="Controls1.html">4. Theme Holographic Dark</a></dt>
274+ <dt><a href="Controls1.html">4. Holographic Dark Theme</a></dt>
275275 <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark holographic theme. </dd>
276276 </dl>
277+<dl>
278+ <dt><a href="Controls1.html">5. Custom Theme</a></dt>
279+ <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using a custom
280+ theme based on the light theme. </dd>
281+</dl>
282+<dl>
283+ <dt><a href="Controls1.html">6. Holo or Old Theme</a></dt>
284+ <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using a custom
285+ theme that uses either the traditional or holo theme depending on the version of the platform. </dd>
286+</dl>
277287
278288 <h3>Auto Complete</h3>
279289 <dl>