Created
September 9, 2010 03:58
-
-
Save skatldjs/571345 to your computer and use it in GitHub Desktop.
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
| Context mContext = getApplicationContext(); | |
| Dialog dialog = new Dialog(mContext); | |
| dialog.setContentView(R.layout.custom_dialog); | |
| dialog.setTitle("커스텀 다이얼로그"); | |
| TextView text = (TextView) dialog.findViewById(R.id.text); | |
| text.setText("Hello, this is a custom dialog!"); | |
| ImageView image = (ImageView) dialog.findViewById(R.id.image); | |
| image.setImageResource(R.drawable.icon); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment