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
This commit is contained in:
Dianne Hackborn
2011-01-16 14:28:13 -08:00
parent 560094efef
commit e63a4b58a2
9 changed files with 248 additions and 50 deletions

View File

@@ -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 {}

View File

@@ -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 {}

View File

@@ -259,21 +259,31 @@
<h3>Controls</h3>
<dl>
<dt><a href="Controls1.html">1. Theme Light</a></dt>
<dt><a href="Controls1.html">1. Light Theme</a></dt>
<dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light theme. </dd>
</dl>
<dl>
<dt><a href="Controls1.html">2. Theme Dark</a></dt>
<dt><a href="Controls1.html">2. Dark Theme</a></dt>
<dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark theme. </dd>
</dl>
<dl>
<dt><a href="Controls1.html">3. Theme Holographic Light</a></dt>
<dt><a href="Controls1.html">3. Holographic Light Theme</a></dt>
<dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the light holographic theme. </dd>
</dl>
<dl>
<dt><a href="Controls1.html">4. Theme Holographic Dark</a></dt>
<dt><a href="Controls1.html">4. Holographic Dark Theme</a></dt>
<dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark holographic theme. </dd>
</dl>
<dl>
<dt><a href="Controls1.html">5. Custom Theme</a></dt>
<dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using a custom
theme based on the light theme. </dd>
</dl>
<dl>
<dt><a href="Controls1.html">6. Holo or Old Theme</a></dt>
<dd>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. </dd>
</dl>
<h3>Auto Complete</h3>
<dl>