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
InputDialog strange log #1
Comments
Am I right that this is just a warning and the dialog still behaves as expected? |
It's probably because I am using an |
By the way, |
But there is nothing on onResult, it is not giving me the entered text by user, it just shows the log, that's it! |
The dialog still behaves as expected, but there is NO result, without result, it is just a dialog which user can enter some text, but you can't deal with the text |
I see. Well that's because you have called the Try this: final static String FLASHCARD_DIALOG = "flashcard_dialog_tag"; SimpleInputDialog.build()
.msg(R.string.enter_flashcard_name)
.show(MainActivity.this, FLASHCARD_DIALOG); @Override
public boolean onResult(@NonNull String dialogTag, int which, @NonNull Bundle extras) {
if (FLASHCARD_DIALOG.equals(dialogTag) && which == BUTTON_POSITIVE){
String name = extras.getString(SimpleInputDialog.TEXT);
// ...
return true;
}
return false;
} |
Thanks Eltos, I did this! |
I have tried this for simple name input:
But in logcat, it gives this:
I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
and it makes me nervous, what the hell did I do wrong?The text was updated successfully, but these errors were encountered: