Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-03 Thread Appaholics
@Rich: Agreed a switch would work out better. My mistake. Thanks On Sat, Sep 3, 2011 at 7:56 PM, TreKing wrote: > On Sat, Sep 3, 2011 at 1:29 AM, Hitendrasinh Gohil < > hitendrasin...@gmail.com> wrote: > >> because if i put all the images under drawable folder then i need to give >> different na

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-03 Thread TreKing
On Sat, Sep 3, 2011 at 1:29 AM, Hitendrasinh Gohil wrote: > because if i put all the images under drawable folder then i need to give > different names to images and do many if...else condition in code. > I don't know how themes work, but don't they just reference some resources (images, styles,

[android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-03 Thread rich friedel
How is putting them in seperate folders going to make it any different? You are still going to have to name them and call them somehow... @Appholics a switch statement is wy better in that situation. -- You received this message because you are subscribed to the Google Groups "Android Devel

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Appaholics
I don't think so. I am not saying that you can't create sub folders but I have never done that so I don't know. On Sat, Sep 3, 2011 at 12:21 PM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > is there any better way that i can manage it through single method? > > On Sat, Sep 3, 2011 at 1

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Hitendrasinh Gohil
is there any better way that i can manage it through single method? On Sat, Sep 3, 2011 at 12:17 PM, Appaholics wrote: > You don't need so many if else statements. For five themes you will need > five conditions. > > if (theme == 1) > { > applyTheme1(); > } > else if (theme == 2) > { > applyTheme

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Appaholics
You don't need so many if else statements. For five themes you will need five conditions. if (theme == 1) { applyTheme1(); } else if (theme == 2) { applyTheme2(); } and so on. Simply call a method that will set the imageviews to the required images. Thanks On Sat, Sep 3, 2011 at 11:59 AM, Hiten

[android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Hitendrasinh Gohil
Hi, I am having 5 different themes(5 set of images).If user selects particular particular theme images related to that theme should come. is there anyway that i can make 5 different folders in res folder and from there i can manage it? because if i put all the images under drawable folder then