Created
September 19, 2018 18:12
-
-
Save malikkurosaki/6c002b6f27bbc8c98a585228b80a48b7 to your computer and use it in GitHub Desktop.
alert dialog android studio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("INI FOM"); | |
View view = getLayoutInflater().inflate(R.layout.profil_form,null); | |
builder.setView(view); | |
builder.setPositiveButton("Simpan", new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialog, int which) { | |
Log.d("CLIK SIMPAN","adalah"+which); | |
} | |
}); | |
builder.show(); | |
Button klik = view.findViewById(R.id.tombol); | |
klik.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Log.d("INI_CLIK","diclick"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment