[android-developers] Re: Set the theme from the application: the background doesn't change

2009-06-14 Thread mathias axelsson
Thank you!! moving super.onCreate did the trick! super.onCreate seems to call getTheme which initiates it(?). On Thu, May 21, 2009 at 9:01 PM, quanghuytruongd...@gmail.com < quanghuytruongd...@gmail.com> wrote: > > You can try to put setTheme() before super.onCreate() --> your > background wil

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-22 Thread Dianne Hackborn
We won't soon if ever support this. On Thu, May 21, 2009 at 8:33 PM, quanghuytruongd...@gmail.com < quanghuytruongd...@gmail.com> wrote: > > Thanks Dianna Hackborn for your information! > > Maybe Android SDK need to be upgraded so that dev can customize their > application at runtime. > > On May

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-21 Thread EboMike
You can always restart your activity, which is pretty much instantaneous. There is no other way, this requirement to re-inflate the layout for a change is rooted too deeply in how Android works. On May 21, 8:33 pm, "quanghuytruongd...@gmail.com" wrote: > Thanks Dianna Hackborn for your informat

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-21 Thread quanghuytruongd...@gmail.com
Thanks Dianna Hackborn for your information! Maybe Android SDK need to be upgraded so that dev can customize their application at runtime. On May 22, 9:04 am, Dianne Hackborn wrote: > You can only set the theme during creation.  To apply a theme, the entire UI > need to be reinflated and rebuil

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-21 Thread Dianne Hackborn
You can only set the theme during creation. To apply a theme, the entire UI need to be reinflated and rebuilt from its resources. On Thu, May 21, 2009 at 6:01 PM, quanghuytruongd...@gmail.com < quanghuytruongd...@gmail.com> wrote: > > You can try to put setTheme() before super.onCreate() --> you

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-21 Thread quanghuytruongd...@gmail.com
You can try to put setTheme() before super.onCreate() --> your background will change. If you want to change your background by pressing a button, get the root layout object (LinearLayout, TableLayout...), and call set Background from Drawable, res. But I still don't know how to change the text