Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: manipulate properties like text on default buttons or remove access get methods #38

Open
BrunoRCE opened this issue Apr 18, 2021 · 0 comments

Comments

@BrunoRCE
Copy link

BrunoRCE commented Apr 18, 2021

I am using this library because it is useful to me, but I need to keep using the default buttons, I wanted to change the button text, but it was not possible, only other properties like visibility, I note that there is the method to disable the buttons by default and create my own buttons, that has solved the problem for me, but I would like to be able to edit the text of the default buttons or in your case remove the get methods to access the buttons to guide the user to use the custom methods

   if(positiveButton.getText().toString().trim().isEmpty()){
        positiveButton.setText(positiveText)
    }

    if(negativeButton.getText().toString().trim().isEmpty()){
        negativeButton.setText(positiveText)
    }

or remove this methods

 public Button getPositiveButton() {
        return positiveButton;
    }

 public Button getNegativeButton() {
        return negativeButton;
    }
@BrunoRCE BrunoRCE changed the title suggestion: manipulate properties like text on default buttons or change access to private suggestion: manipulate properties like text on default buttons or remove access get methods Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant