List of usage examples for android.app Dialog setTitle
public void setTitle(@StringRes int titleId)
From source file:com.androzic.track.TrackToRoute.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.act_track_to_route, container); algA = (RadioButton) rootView.findViewById(R.id.alg_a); //algB = (RadioButton) rootView.findViewById(R.id.alg_b); algA.setChecked(true);//from w ww . ja v a 2 s.c om sensitivity = (SeekBar) rootView.findViewById(R.id.sensitivity); Button generate = (Button) rootView.findViewById(R.id.generate_button); generate.setOnClickListener(saveOnClickListener); final Dialog dialog = getDialog(); dialog.setTitle(R.string.savetrack_name); dialog.setCanceledOnTouchOutside(false); return rootView; }
From source file:org.lunci.dumbthing.dialog.CalendarDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(R.string.dumb_thing_calendar); return dialog; }
From source file:com.privacity.MenuActivity.java
public void gotoVisualizar(View view) { Intent intent = new Intent(this, PermisosActivity.class); String permisos = new String(); JSONObject jsonObject = comm.obternerPemisosPorPalabras(); if (!jsonObject.has("Error") & !jsonObject.has("detail")) { //Si no existen errores try {/*from ww w . j a v a 2 s.c om*/ permisos = new String(jsonObject.get("permisos").toString()); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } intent.putExtra("permisos", permisos); startActivity(intent); } //IF else { Dialog dialogoError = new Dialog(this); dialogoError.setTitle(getResources().getString(R.string.errorDeConexion)); dialogoError.show(); } }
From source file:pl.allegro.foggerexample.ui.ComponentsActivity.java
private void showDialog() { Dialog dialog = new Dialog(this); dialog.setTitle(R.string.example_dialog_title); DialogWithBlurredBackgroundLauncher.showDialog(this, dialog); }
From source file:mobisocial.musubi.ui.fragments.AnonymousStatsSampleDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog d = super.onCreateDialog(savedInstanceState); d.setContentView(R.layout.sample_stats); d.setTitle("Anonymous Statistics"); StringBuilder html = new StringBuilder(); html.append("<html><p>Your privacy is important to us. You can help us build a better Musubi ") .append("by sharing anonymous usage statistics, which includes things like:</p>").append("<p>") .append("\t•Number of accounts connected<br/>") .append("\t•Number of conversations started<br/>") .append("\t•Number of messages sent<br/>").append("\t•Number of sketches drawn<br/>") .append("\t•When you update your profile<br/>").append("</p>"); SharedPreferences p = getActivity().getSharedPreferences(SettingsActivity.PREFS_NAME, 0); if (p.getBoolean(SettingsActivity.PREF_ANONYMOUS_STATS, true)) { html.append("<p><b>Thank you for helping us improve Musubi!</b></p>"); }/*from w w w . j a va 2s . c o m*/ html.append("</html>"); TextView sample_text = (TextView) d.findViewById(R.id.stat_text); sample_text.setText(Html.fromHtml(html.toString())); Button ok_button = (Button) d.findViewById(R.id.stat_ok); ok_button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { dismiss(); } }); return d; }
From source file:org.zakky.memopad.MyDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setContentView(R.layout.dialog); dialog.setTitle(R.string.app_name); dialog.findViewById(R.id.ok_button).setOnClickListener(new OnClickListener() { public void onClick(View v) { v.setEnabled(false);/* w w w. j a v a 2 s .c o m*/ final CheckBox box = (CheckBox) dialog.findViewById(R.id.show_this_dialog_at_startup); final SharedPreferences pref = dialog.getContext().getSharedPreferences(PREF_FILE_NAME, Context.MODE_PRIVATE); final Editor editor = pref.edit(); try { editor.putBoolean(PREF_KEY_SHOW_AT_STARTUP, box.isChecked()); } finally { editor.commit(); } dialog.dismiss(); } }); return dialog; }
From source file:de.azapps.mirakel.new_ui.dialogs.PriorityDialog.java
@NonNull @Override/* w ww . ja v a 2 s. com*/ public Dialog onCreateDialog(Bundle savedInstanceState) { final Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(R.string.menu_set_priority); return dialog; }
From source file:ca.cmput301w14t09.PopUpEdit.java
/** * Creates a popup edit window with the given input parameters. * @param comment - edited comment./*from w ww . j a v a 2 s. c o m*/ */ public void popUpEdit(final Comment comment) { //Creates a dialog box final Dialog dialog = new Dialog(caller); dialog.setContentView(R.layout.pop_up_edit); dialog.setTitle("Comment Text"); Button Submit = (Button) dialog.findViewById(R.id.Submit); final EditText commentText = (EditText) dialog.findViewById(R.id.editComment); commentText.setHint(comment.getCommentText()); dialog.show(); Submit.setOnClickListener(new View.OnClickListener() { //when submit is pressed everything is pused to the server @Override public void onClick(View v) { String str = "commentText = \\\"" + commentText.getText() + "\\\"\""; if (Server.getInstance().isServerReachable(caller)) { try { ElasticSearchOperations.updateComment(comment, str); } catch (InterruptedException e) { e.printStackTrace(); } catch (ClientProtocolException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } dialog.dismiss(); } }); }
From source file:org.alfresco.mobile.android.application.fragments.site.request.JoinSiteRequestsFragment.java
public Dialog onCreateDialog(Bundle savedInstanceState) { setSession(SessionUtils.getSession(getActivity())); SessionUtils.checkSession(getActivity(), getSession()); title = getString(R.string.joinsiterequest_list_title); Dialog d = super.onCreateDialog(savedInstanceState); d.setTitle(title); return d;/* w w w. j a v a 2s .c om*/ }
From source file:fr.simon.marquis.preferencesmanager.ui.RestoreDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(R.string.pick_restore); return dialog; }