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, Hitendrasinh Gohil <
[email protected]> wrote:

> 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 i need to
> give different names to images and do many if...else condition in code.
>
> --
> 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




-- 
------------------
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

-- 
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