Created
September 8, 2010 14:23
-
-
Save skatldjs/570195 to your computer and use it in GitHub Desktop.
This file contains 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 CharSequence[] items = {"Red", "Green", "Blue"}; | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("리스트의 타이틀"); | |
builder.setItems(items, new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int item) { | |
Toast.makeText(getApplicationContext(), | |
items[item], Toast.LENGTH_SHORT).show(); | |
} | |
}); | |
AlertDialog alert = builder.create(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment