docs: Fixed typo in AlertDialog code snippet.
Bug-ID:10797361 Review URL: http://quixote.mtv.corp.google.com:8001/guide/topics/ui/dialogs.html#AlertDialog Change-Id: If93e140d624c2a4360a27bfae630f19fce24d7ab
This commit is contained in:
@@ -281,7 +281,7 @@ use the {@link android.app.AlertDialog.Builder#setItems setItems()} method:</p>
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
builder.setTitle(R.string.pick_color);
|
||||
builder.setTitle(R.string.pick_color)
|
||||
.setItems(R.array.colors_array, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// The 'which' argument contains the index position
|
||||
|
||||
Reference in New Issue
Block a user