The style you have defined is the style of a -text appearance.  Not a theme.
 Not even a text view style, as you are trying to use it as.  It is only
happenstance that it is kind-of getting what you want in your original
attempt.

The style attribute takes a style for the entire text view.  That is, it
should inherit from something like @android:style/Widget.TextView --
http://developer.android.com/reference/android/R.style.html#Widget_TextView

A theme defines the attributes used across the entire window.  It is an
extremely complicated style structure, inheriting from @android:style/Theme
or one of its substyles (Theme.Light etc).

The set of attributes in a theme can be found here:
http://developer.android.com/intl/de/reference/android/R.styleable.html#Theme

Note that there are a bunch of attributes for the standard styles of various
controls, which should be populated with references to other style resources
containing the appropriate style for that control -- for example
android:textViewStyle should be a reference to a style inheriting from
android:style/Widget.TextView.

Finally you should set your theme in your manifest, with the android:theme
attribute.

On Mon, Feb 22, 2010 at 8:51 PM, malandro95 <[email protected]> wrote:

> I tried it after as well.... still no luck.
>
> Any other ideas?  What am I missing?
>
> On Feb 22, 12:30 am, James Wang <[email protected]> wrote:
> > According tohttp://
> developer.android.com/intl/fr/guide/topics/ui/themes.html
> > you should do it after super.onCreate.
> >
> >  protected void onCreate(Bundle savedInstanceState) {
> >     super.onCreate(savedInstanceState);
> >     ...
> >     setTheme(android.R.style.Theme_Light);
> >     setContentView(R.layout.linear_layout_3);
> >
> > }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to