Hi  Justin Anderson ,
   good idea but think how text will appear in the particular shape ...dont
have textview id ....could u suges

On Fri, Aug 31, 2012 at 6:24 PM, Justin Anderson <[email protected]>wrote:

> Unfortunately this cannot be done in XML as far as I'm aware...
> You should be able to do this in code with the PathShape class though...
>
> http://developer.android.com/reference/android/graphics/drawable/shapes/PathShape.html
>
> Note: I have never done this so I don't know how well it works or how to
> actually do it.  But from looking at the class it should be possible.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Fri, Aug 31, 2012 at 6:22 AM, Parthi K <[email protected]> wrote:
>
>> Hi meene
>>
>> Dont change textview shape i dont know idea i think  u create separate
>> layout dis shape inside dis shape use textview dis will apper
>> only particular shape
>>  just try  ....
>>
>> On Fri, Aug 31, 2012 at 5:36 PM, Meena Rengarajan <[email protected]
>> > wrote:
>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>>
>>>
>>>
>>> <shape xmlns:android="http://schemas.android.com/apk/res/android"; >
>>>
>>>
>>>
>>>
>>>     android:shape="Rectangle">
>>>     <gradient
>>>
>>>
>>>
>>>
>>>         android:startColor="#F778A1"
>>>
>>>
>>>
>>>
>>>         android:endColor="#D4A017"
>>>
>>>
>>>
>>>
>>>         android:angle="180"/>
>>>
>>>
>>>
>>>
>>>     <corners android:radius="60dp"/>
>>>
>>>
>>>
>>>
>>>     <padding android:left="9dp"
>>>
>>>
>>>
>>>
>>>         android:top="9dp"
>>>
>>>
>>>
>>>
>>>         android:right="9dp"
>>>
>>>
>>>
>>>
>>>         android:bottom="9dp" />
>>>
>>>
>>>
>>>
>>>     <corners android:radius="90dp" />
>>>
>>>
>>>
>>> </shape>
>>>
>>>
>>>
>>>
>>>
>>> This is my Code, I have changed textview shape as a rectangle with round 
>>> edged corners. It works fine for me.
>>>
>>>
>>>
>>>
>>>
>>> Same, now i wanna change the shape of the Textview as a Hexagon/Pentagon by 
>>> creating xml in resources/drawable in my app. How could i do this ? Could 
>>> anyone help me.
>>>
>>>
>>>
>>>
>>>
>>> Any suggestions / helps would be greatly appreciated, thank you !
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  --
>>> 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
>>
>>
>>  --
>> 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
>>
>
>  --
> 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
>

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