thanks skink , i will look into it .. and will update it over here..

2010/5/5 Alok Kulkarni <[email protected]>

> Thanks for the link Kostya,
> But my problem is that i cannot have my images under drawable folder and
> also cannot specify the image path in my XML for layout  as and when the
> user wishes to change the theme , a new theme will be downloaded from the
> server and the new set of images will be loaded at runtime ,, So if my
> button has a yellow color when it has focus it might become red when user
> changes theme.So all the three images for a button will change at
> runtime..So all my drawables need to be kept in the runtime application
> folder ie data/data/appPackage/themes which i am doing curently..
> Is the 9 patch image logic useful in this case ?
> The statelistdrawable works fine if i have only one image for a Widget.But
> in case of button i have three images which is not working 1.6 onwards..
> Thanks,
> Alok.
>
>
> 2010/5/5 Kostya Vasilyev <[email protected]>
>
> Nine-patch described here:
>>
>>
>> http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
>>
>> -- Kostya
>>
>> Alok Kulkarni <[email protected]> писал(а) в своём письме Wed, 05 May
>> 2010 12:25:11 +0400:
>>
>>  For 9 patch images i suppose they need to be stored under drawable
>>> folder. I
>>> need to change the images according to theme at runtime.
>>>
>>> On Wed, May 5, 2010 at 12:52 PM, skink <[email protected]> wrote:
>>>
>>>
>>>>
>>>> Alok Kulkarni wrote:
>>>> > Hi ,
>>>> > I am having the following code for drawing buttons in my project.
>>>> > I am having a button which has three images for 1 button .Namely one
>>>> image
>>>> > for the rectangle and 2 images for the left and right side curves
>>>> > respectively.
>>>>
>>>> use nine-patch-drawables instead
>>>>
>>>> search for *.9.png files under <SDK>/platforms/*/data/res to see how
>>>> they look like
>>>>
>>>> pskink
>>>>
>>>> --
>>>> 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]<android-developers%[email protected]>
>>>> <android-developers%[email protected]<android-developers%[email protected]>
>>>> >
>>>>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>>
>>>
>>
>> --
>> Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/
>>
>> --
>> 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]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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