just like a yellow highlighter pen. How can I draw a thin yellow line on the TextView text with round corner at both ends ?
thank you
just like a yellow highlighter pen. How can I draw a thin yellow line on the TextView text with round corner at both ends ?
thank you
 
    
    You can use gradient and control it as you wish as follow :
 <?xml version="1.0" encoding="utf-8"?>
  <shape xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="rectangle">
   <gradient android:startColor="#FFFF00" android:centerColor="#FFFF00"
         android:endColor="#FFFF00" android:angle="0" /> 
     <corners android:radius="30dp"  /> 
 </shape>
and in xml refer textview to that gradient as follow :
   android:background="@drawable/gredient"  
hope help you.
