D
D
Dewerro2021-03-25 13:21:20
Android
Dewerro, 2021-03-25 13:21:20

Is there an analogue of android:drawableTop in Kotlin?

In XML, for setting an element, for example, on a button, there is an attribute android:drawableTop="". Is there a software equivalent to this attribute? It is necessary that the drawable of the button is set programmatically.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-03-25
@Dewerro

setCompoundDrawables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question