I saw how to add padding to compoundDrawable.
But is there anyway to add margins?
TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(displayName, 0, 0, 0, 0);
I saw how to add padding to compoundDrawable.
But is there anyway to add margins?
TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(displayName, 0, 0, 0, 0);
Copyright © 2021 Jogjafile Inc.
Setting margin is not possible for
TextViewAs per my knowledge there is no official API to set margin for
TextView.You can only set
padding.