diff options
Diffstat (limited to 'docs/html/guide/topics/ui')
-rw-r--r-- | docs/html/guide/topics/ui/binding.jd | 3 | ||||
-rw-r--r-- | docs/html/guide/topics/ui/declaring-layout.jd | 6 | ||||
-rw-r--r-- | docs/html/guide/topics/ui/index.jd | 6 | ||||
-rw-r--r-- | docs/html/guide/topics/ui/menus.jd | 12 | ||||
-rw-r--r-- | docs/html/guide/topics/ui/themes.jd | 21 |
5 files changed, 33 insertions, 15 deletions
diff --git a/docs/html/guide/topics/ui/binding.jd b/docs/html/guide/topics/ui/binding.jd index f9afbc5..85aed18 100644 --- a/docs/html/guide/topics/ui/binding.jd +++ b/docs/html/guide/topics/ui/binding.jd @@ -81,6 +81,9 @@ s2.setAdapter(adapter2); <p>Note that it is necessary to have the People._ID column in projection used with CursorAdapter or else you will get an exception.</p> +<p>If, during the course of your application's life, you change the underlying data that is read by your Adapter, +you should call {@link android.widget.ArrayAdapter#notifyDataSetChanged()}. This will notify the attached View +that the data has been changed and it should refresh itself.</p> <h2 id="HandlingUserSelections">Handling User Selections</h2> <p>You handle the user's selecction by setting the class's {@link diff --git a/docs/html/guide/topics/ui/declaring-layout.jd b/docs/html/guide/topics/ui/declaring-layout.jd index dd0b7de..7ef22a6 100644 --- a/docs/html/guide/topics/ui/declaring-layout.jd +++ b/docs/html/guide/topics/ui/declaring-layout.jd @@ -5,6 +5,12 @@ parent.link=index.html <div id="qv-wrapper"> <div id="qv"> + <h2>Key classes</h2> + <ol> + <li>{@link android.view.View}</li> + <li>{@link android.view.ViewGroup}</li> + <li>{@link android.view.ViewGroup.LayoutParams}</li> + </ol> <h2>In this document</h2> <ol> <li><a href="#write">Write the XML</a></li> diff --git a/docs/html/guide/topics/ui/index.jd b/docs/html/guide/topics/ui/index.jd index ccc8ff6..6bd1d15 100644 --- a/docs/html/guide/topics/ui/index.jd +++ b/docs/html/guide/topics/ui/index.jd @@ -4,11 +4,11 @@ page.title=User Interface <div id="qv-wrapper"> <div id="qv"> - <h2>Key classes and packages</h2> + <h2>Key classes</h2> <ol> <li>{@link android.view.View}</li> <li>{@link android.view.ViewGroup}</li> - <li>{@link android.widget}</li> + <li>{@link android.widget Widget classes}</li> </ol> <h2>In this document</h2> @@ -107,7 +107,7 @@ complex layout.</p> <p>For more on building a UI layout, read <a href="declaring-layout.html">Declaring Layout</a>. <div class="sidebox-wrapper"> -<div class="sidebox"> +<div class="sidebox-inner"> <p><b>Tip:</b> You can also draw View and ViewGroups objects in Java code, using the <code>{@link android.view.ViewGroup#addView(View)}</code> methods to dynamically insert new View and ViewGroup objects.</p> diff --git a/docs/html/guide/topics/ui/menus.jd b/docs/html/guide/topics/ui/menus.jd index ed796ee..bae94ca 100644 --- a/docs/html/guide/topics/ui/menus.jd +++ b/docs/html/guide/topics/ui/menus.jd @@ -5,6 +5,12 @@ parent.link=index.html <div id="qv-wrapper"> <div id="qv"> + <h2>Key classes</h2> + <ol> + <li>{@link android.view.Menu}</li> + <li>{@link android.view.ContextMenu}</li> + <li>{@link android.view.SubMenu}</li> + </ol> <h2>In this document</h2> <ol> <li><a href="#options-menu">Options Menu</a></li> @@ -20,12 +26,6 @@ parent.link=index.html </ol> </li> </ol> - <h2>Key classes</h2> - <ol> - <li>{@link android.view.Menu}</li> - <li>{@link android.view.ContextMenu}</li> - <li>{@link android.view.SubMenu}</li> - </ol> </div> </div> diff --git a/docs/html/guide/topics/ui/themes.jd b/docs/html/guide/topics/ui/themes.jd index d684512..956ffe1 100644 --- a/docs/html/guide/topics/ui/themes.jd +++ b/docs/html/guide/topics/ui/themes.jd @@ -5,7 +5,16 @@ parent.link=index.html <div id="qv-wrapper"> <div id="qv"> - + <h2>In this document</h2> + <ol> + <li><a href="#styles">Styles</a></li> + <li><a href="#themes">Themes</a> + <ol> + <li><a href="#inTheManifest">Set the theme in the manifest</a></li> + <li><a href="#fromTheApp">Set the theme from the application</a></li> + </ol> + </li> + </ol> <h2>See also</h2> <ol> <li><a href="{@docRoot}guide/topics/resources/available-resources.html#stylesandthemes">Style and Theme Resources</a></li> @@ -33,7 +42,7 @@ parent.link=index.html </ol> -<h2>Styles</h2> +<h2 id="styles">Styles</h2> <p>Here's an example declaration of a style: </p> @@ -66,7 +75,7 @@ or a reference to any other resource type.</p> <p>Now this EditText widget will be styled as defined by the <code>style</code> example above.</p> -<h2>Themes</h2> +<h2 id="themes">Themes</h2> <p>Just like styles, themes are also declared in XML <code><style></code> elements, and are referenced in the same manner. The difference is that you can add a theme style only to <code><application></code> and <code><activity></code> elements — @@ -100,8 +109,8 @@ is done by referring to a specific <code><item></code> by its <code>name</cod This technique can be used only in XML resources. </p> -<h3>Set the theme in the Manifest</h3> -<p>To set this theme for all the activites of your application, open the Manifest file and +<h3 id="inTheManifest">Set the theme in the manifest</h3> +<p>To set this theme for all the activites of your application, open the AndroidManifest.xml file and edit the <code><application></code> tag to include the <code>android:theme</code> attribute with the theme name:</p> @@ -136,7 +145,7 @@ For example, we'll modify the <code>Theme.Dialog</code> theme. First, we need to So, for each item in the Dialog theme that we want to override, we re-define the value under this style and then use <var>CustomDialogTheme</var> instead of the <var>Theme.Dialog</var>.</p> -<h3>Set the theme from the application</h3> +<h3 id="fromTheApp">Set the theme from the application</h3> <p>You can also load a theme for an Activity programmatically, if needed. To do so, use the {@link android.app.Activity#setTheme(int) setTheme()} method. Note that, when doing so, you must be sure to set the theme <em>before</em> |