mardi 19 mai 2015

How to create only two edges rounded textView in android.?

I need to create a textview with only TopLeft and TopRight coners with round shape and no others, i've wrote a XML for 4 coner round, but it not supporting for two coner round. Here is the XML

<?xml version="1.0" encoding="utf-8"?>
<!--  res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://ift.tt/nIICcg"
    android:shape="rectangle" android:padding="10dp">
    <solid android:color="#FFFFFF"/>
    <corners
        android:bottomRightRadius="5dp"
        android:bottomLeftRadius="5dp"
        android:topLeftRadius="5dp"
        android:topRightRadius="5dp"/>
</shape>

any suggestions or help..?

Aucun commentaire:

Enregistrer un commentaire