How to disable an Android button?

I have created a layout that contains two buttons, Next and Previous. In between the buttons I’m generating some dynamic views. So when I first launch the application I want to disable the “Previous” button since there wont be any previous views. I also want to disable the “Next” button when there are not more views to display. Is there anyway to disable the buttons?

screen shot of sample layout

13 Answers
13

Leave a Comment