button.setEnabled(false);
I would like to know the default transparency at this time.Or I want to lose transparency when it's false.
Tried
textView.setText(String.valueOf(button.getAlpha()));// The result was 1.
When enabled false, it means that it is transparent in 1 state, so what should I do with this?
android java
Let me finish (posted by the questioner himself)
I wanted to change the default color transparency when setEnabled is false, but I don't think I need to be too particular about it.
You can find a way to specify the status by xml by searching the Internet.
I don't know how to erase the question, so I'll leave it as it is for now.
Excuse me.
776 M2 Mac fails to install rbenv install 3.1.3 due to errors
1235 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
856 Uncaught (inpromise) Error on Electron: An object could not be cloned
771 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2025 OneMinuteCode. All rights reserved.