Hi everyone, how can implement the native input dialogs of Android in my app?
i found this code here, but i don't know how to convert it:
I need something like so:
I tried to use B4XDialogs, but to me seemed unreliable... if i've a edtitext in the customlayout, the IME stop working, so i can't manage the layout when the keyboard appears.
Even if the ".PutAtTop" property was on TRUE, the dialog does not show on top of everything, but compenetrate with my otherpanels etc... So.. them are causing me waste of time...
example:
as you can see the msgbox is between the panel i use for preview the camera, and many buttons/imageview...
at the moment i dont' rely on them..
i need only an edittext in a msgbox ?.. how can i implement the native alert dialog?
Thanks in advance
i found this code here, but i don't know how to convert it:
B4X:
private void showForgotDialog(Context c) {
final EditText taskEditText = new EditText(c);
AlertDialog dialog = new AlertDialog.Builder(c)
.setTitle("Forgot Password")
.setMessage("Enter your mobile number?")
.setView(taskEditText)
.setPositiveButton("Reset", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
String task = String.valueOf(taskEditText.getText());
}
})
.setNegativeButton("Cancel", null)
.create();
dialog.show();
}
I need something like so:
I tried to use B4XDialogs, but to me seemed unreliable... if i've a edtitext in the customlayout, the IME stop working, so i can't manage the layout when the keyboard appears.
Even if the ".PutAtTop" property was on TRUE, the dialog does not show on top of everything, but compenetrate with my otherpanels etc... So.. them are causing me waste of time...
example:
as you can see the msgbox is between the panel i use for preview the camera, and many buttons/imageview...
at the moment i dont' rely on them..
i need only an edittext in a msgbox ?.. how can i implement the native alert dialog?
Thanks in advance