Can't you make the Android button not work?

Asked 2 years ago, Updated 2 years ago, 64 views

2 There are prev and next buttons. I made these two buttons dynamic Even if it's the first screen, there's no more screen to go back, so don't let the Prev button work I don't want to move on to the next screen because there's no more screen to move on How can you do that?

android layout button

2022-09-21 23:17

1 Answers

myButton.setEnabled(false); Have you used this before? You can also go to the xml layout and give the android:clickable property.


2022-09-21 23:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.