I would like to know more about such a thing as CompoundDrawable , or rather about the string
textView.setCompoundDrawablesWithIntrinsicBounds(left, top, right, bottom); What gives the last four parameters (left, top, right, bottom) ?
I would like to know more about such a thing as CompoundDrawable , or rather about the string
textView.setCompoundDrawablesWithIntrinsicBounds(left, top, right, bottom); What gives the last four parameters (left, top, right, bottom) ?
Code
textView.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0) allows you to set icons in a textView . left, top, right, bottom position of the icon relative to the text
xml is written like this
<TextView ... android: drawableTop = "@drawable/ic_launcher" ... /> Source: https://ru.stackoverflow.com/questions/499077/
All Articles