Disable buttons and change the text of all buttons..

change button text

public void disable(View v){
v.setEnabled(false);
Button button = (Button) v;
button.setText(“Disabled”);
}


This content originally appeared on DEV Community and was authored by Anoop Patel

change button text

 public void disable(View v){
        v.setEnabled(false);
        Button button = (Button) v;
        button.setText("Disabled");
    }


This content originally appeared on DEV Community and was authored by Anoop Patel


Print Share Comment Cite Upload Translate Updates
APA

Anoop Patel | Sciencx (2024-09-21T14:05:20+00:00) Disable buttons and change the text of all buttons... Retrieved from https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/

MLA
" » Disable buttons and change the text of all buttons..." Anoop Patel | Sciencx - Saturday September 21, 2024, https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/
HARVARD
Anoop Patel | Sciencx Saturday September 21, 2024 » Disable buttons and change the text of all buttons..., viewed ,<https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/>
VANCOUVER
Anoop Patel | Sciencx - » Disable buttons and change the text of all buttons... [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/
CHICAGO
" » Disable buttons and change the text of all buttons..." Anoop Patel | Sciencx - Accessed . https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/
IEEE
" » Disable buttons and change the text of all buttons..." Anoop Patel | Sciencx [Online]. Available: https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/. [Accessed: ]
rf:citation
» Disable buttons and change the text of all buttons.. | Anoop Patel | Sciencx | https://www.scien.cx/2024/09/21/disable-buttons-and-change-the-text-of-all-buttons/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.