Guys ,
I finally found the solution for my original problem.So thought of sharing
it if someone has the same in the future.
Using the 3 images itself ,my problem was solved by adding a zero padding
explicitly
android:paddingLeft="0dip" android:paddingRight="0dip"
android:paddingTop="0dip" android:paddingBottom="0dip"
Maybe Android 1.5 is taking padding 0 dip for the compound drawables but
later on its adding some padding by default from 1.6 and specifying padding
as 0 explicitly solves the problem.This solution was found just by
fluke..But it has solved a major headache for me ..
Thanks and Regards,
Alok.

On Thu, May 6, 2010 at 7:24 PM, Alok Kulkarni <[email protected]> wrote:

> Oh ok.. Thanks for that.. ill try that and will let you know...
> Regards,
> Alok.
>
>
> On Thu, May 6, 2010 at 3:36 PM, skink <[email protected]> wrote:
>
>>
>>
>> On May 6, 5:52 am, skink <[email protected]> wrote:
>> > reading this:
>> http://groups.google.com/group/android-developers/msg/db8d63fd8575129c
>> > it seems ninePatches are created statically by aapt tool and if you
>> > want to create ninepatchdrawable dynamically from any file you would
>> > calculate chunk by yourself (ResourceTypes.h for its format)
>> >
>> > pskink
>>
>> so if creating NinePatcheDrawable is not an easy thing (due to binary
>> chunk format) i thing the best idea for OP is to create custom
>> drawable extending StateListDrawable
>>
>> 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]>
>> 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