Is there a way to extend a textview to change the color of the left margin to a different color than the first of the textview?
Asked
Active
Viewed 143 times
0
-
Your question is not clear enough, post with some image or sample code. – Amitabh Sarkar Mar 21 '13 at 10:59
-
How about creating custom **stateList (Drawables)**.. Why extending TextView – ngesh Mar 21 '13 at 11:01
-
Do you maybe just mean a linear color gradient ? – Stefan de Bruijn Mar 21 '13 at 11:02
-
**margin color** has no relation with `TextView` , it has relation with the **background color** of the parentLayout of your `TextView`, so you need to create a **Custom Layout(Linear or Relative ...)** and inside it try to create a `TextView` , and then specify the color you want as a background of your `Layout`, and apply the `leftMargin` value to the `TextView` – Houcine Mar 21 '13 at 11:09