List of usage examples for android.app AlertDialog.Builder findViewById
@Nullable public <T extends View> T findViewById(@IdRes int id)
From source file:com.todoroo.astrid.taskrabbit.TaskRabbitActivity.java
public void showIntroDialog() { if (!Preferences.getBoolean(TASK_RABBIT_DIALOG_INTRO_PREF, false)) { if (TaskRabbitLocationManager.supportsCurrentLocation(currentLocation)) { AlertDialog.Builder adb = new AlertDialog.Builder(TaskRabbitActivity.this); adb.setTitle(R.string.tr_alert_intro_title); adb.setMessage(getString(R.string.tr_alert_intro_location)); adb.setPositiveButton(getString(R.string.tr_alert_button_close), new DialogInterface.OnClickListener() { public void onClick(final DialogInterface dialog, final int id) { showAddListPopover(); }/*from w w w . java2 s. c om*/ }); adb.show(); } else { final AlertDialog adb = new AlertDialog.Builder(TaskRabbitActivity.this) .setTitle(R.string.tr_alert_intro_title).setMessage(R.string.tr_alert_intro_no_location) .setPositiveButton(getString(R.string.tr_alert_button_close), null).show(); ((TextView) adb.findViewById(android.R.id.message)) .setMovementMethod(LinkMovementMethod.getInstance()); } Preferences.setBoolean(TASK_RABBIT_DIALOG_INTRO_PREF, true); } }