Hi,

i started developing with a droid a few days ago and noticed some
weird behaviour with the TextView.setTextAppearance function. If i use
it with a attr style parameter, it wont work. But if i put the same
ressource in the constructor, it works.

For example:
// Works

TextViw title = new TextView(context, null,
android.R.attr.textAppearanceLarge);

// Works not
TextView title = new TextView(context);
title.setTextAppearance(context, android.R.attr.textAppearanceLarge);

Am i doing something wrong?

Well in my case, doing it via constructor works fine (as i only need
to set it once) but in some cases where you change want to change it
dynamicly, it could cause some problems.

Any ideas what's wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to