-
-
Save rosswarren/1243570 to your computer and use it in GitHub Desktop.
Android Dialog
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
final Button button6 = (Button) findViewById(R.id.btn_addRAddress); | |
button6.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) | |
{ | |
Context mContext = v.getContext(); | |
final Dialog dialog = new Dialog(mContext); | |
dialog.setContentView(R.layout.add_address); | |
dialog.setTitle("Add Address"); | |
final Button button9 = (Button) dialog.findViewById(R.id.btn_cancel_add); | |
button9.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) | |
{ | |
dialog.dismiss(); | |
} | |
}); | |
dialog.show(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment