Bc"d
Hi,
How I can to change this popup window Example to View pop up Without
TextView?
final FrameLayout fl = new FrameLayout(this);
final EditText input = new EditText(this);
AlertDialog.Builder builder = new
AlertDialog.Builder(this);
builder.setMessage("Pleace press on START TEST with this
parameters");
//("Pressure: " + testParams[1] + " " + "Touch Object:
" +
testParams[4]);
input.setGravity(Gravity.CENTER);
fl.addView(input, new
FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT,
FrameLayout.LayoutParams.WRAP_CONTENT));
input.setText("Parameters");
new AlertDialog.Builder(this)
.setView(fl)
.setTitle("Please press on test with this
parameters")
.setPositiveButton("OK", new
DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface d,
int which) {
d.dismiss();
Toast.makeText(AutomaticTestActivity.this, "Value: " +
input.getText().toString(), Toast.LENGTH_LONG).show();
}
})
.setNegativeButton("Cancel", new
DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface d,
int which) {
d.dismiss();
}
}).create().show();
Thanks
Hadas Mobile
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en