Answer the question
In order to leave comments, you need to log in
How to display text on CustomView in Android Studio?
I took such a round button for the water project https://github.com/markushi/android-circlebutton/, but how can I display text on it when I click on another button.
Is it also possible to somehow make a focus so that after clicking a frame is drawn around it and the focus disappears only after clicking on another button or an empty space?
Answer the question
In order to leave comments, you need to log in
I do not pretend to answer, but - before you fence custom controls and other non-traditional things - take the trouble to read the minimum literature on the topic and understand it. And then there will be no questions "how to code something in Android Studio". You can write this code in notepad. Sorry, but it's already boiling.
About focus - there is no such understanding in android for buttons. And there is no need to fence him. Follow google guidelines. Round buttons - there too.
I will support GavriKos ..
0) And what does Android Studio have to do with it? Do you understand what you are saying?
1) Look at the source of the button you found..what is it inherited from? Think - do not know, study Android. On the topic, no, you can’t display text on it
2) No, you won’t draw focus around this particular one either .. To draw: either dig in the direction of ToggleButton or a completely custom View.
PS I noticed a trend, no one wants to learn and understand anything, everyone wants to do something, but they don't know how. And instead of being overlaid with educational material and digging / understanding / studying - they throw their stupid questions on the Internet!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question