Reputation: 36656
I saw how to add padding to compoundDrawable.
But is there anyway to add margins?
TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(displayName, 0, 0, 0, 0);
Upvotes: -1
Views: 279
Reputation: 21756
Setting margin is not possible for TextView
As per my knowledge there is no official API to set margin for TextView
.
You can only set padding
.
Upvotes: 0
Reputation: 853
It is not possible. You can only create your ViewGroup and add TextView and ImageView to it. It is the simplest solution.
Upvotes: 0