is there any better way that i can manage it through single method?

On Sat, Sep 3, 2011 at 12:17 PM, Appaholics <raghavs...@appaholics.in>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)
> {
> 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 <
> hitendrasin...@gmail.com> 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 android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
regards,
Hitendrasinh Gohil

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

Reply via email to