I created an AlertDialogue
using the following code :
int selectedModeId=0;
public void sortTypeModeSelection(){
AlertDialog.Builder aler
you have to use custom layout for this.
check below code it sure help you
AlertDialog.Builder builder = new AlertDialog.Builder(forgatps.this);
builder.setTitle("Select Your Account");
builder.setAdapter(new ArrayAdapter(forgatps.this,
R.layout.row_email, R.id.textView1, emails),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
MainEmail = emails.get(which);
editEmail.setText("" + MainEmail);
}
});
builder.show();
row file: