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 <parthisof...@gmail.com> 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 > <meenasoft...@gmail.com>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 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 > > > -- > 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 > -- 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