I add / remove drawableLeft programmatically:
((TextView)view).setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_icon, 0, 0, 0); ((TextView)view).setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
But since I use it on a list,
I need an option to remove drawableLeft for unselected lines without alignment problems.
What I want:
AAA * BBB CCC
What I get:
AAA * BBB CCC
I can get around this by adding a transparent icon,
but can I programmatically control this drawableLeft visibility?
David source share