List of usage examples for android.app Dialog setTitle
public void setTitle(@StringRes int titleId)
From source file:com.eyekabob.util.EyekabobHelper.java
public static Dialog createAboutDialog(Context context) { final Dialog dialog = new Dialog(context); dialog.setContentView(R.layout.about_dialog); dialog.setTitle(R.string.about_eyekabob_caps); ImageView imageView = (ImageView) dialog.findViewById(R.id.aboutDialogImage); imageView.setImageResource(R.drawable.ic_launcher); String message = context.getResources().getString(R.string.eyekabob_version); String versionName = ""; try {//from ww w.ja v a 2s .c o m versionName = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName; } catch (PackageManager.NameNotFoundException e) { Log.e(context.getClass().getSimpleName(), e.getMessage()); } message += versionName; message += "\n\n" + context.getResources().getString(R.string.about_eyekabob_app); message += "\n\n" + context.getResources().getString(R.string.about_last_fm); TextView textView = (TextView) dialog.findViewById(R.id.aboutDialogText); textView.setText(message); dialog.findViewById(R.id.aboutDialogButton).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { dialog.dismiss(); } }); return dialog; }
From source file:com.pileproject.drive.setting.machine.NxtFirmwareFragment.java
@Override @NonNull//from w ww . ja v a 2 s . c o m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = new Dialog(getActivity()); dialog.setTitle(R.string.setting_firmware); return dialog; }
From source file:com.pileproject.drive.setting.app.CopyrightNoticeFragment.java
@Override @NonNull//from w w w. j ava2 s . co m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = new Dialog(getActivity()); dialog.setTitle(R.string.setting_copyrightNotice); return dialog; }
From source file:com.pileproject.drive.setting.app.LegalNoticeFragment.java
@Override @NonNull//from w w w .j av a 2s . c o m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = new Dialog(getActivity()); dialog.setTitle(R.string.setting_legalNotice); return dialog; }
From source file:com.coinprism.wallet.ProgressDialog.java
@android.support.annotation.NonNull @Override//from w w w . ja v a 2s. co m public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); // Get the layout inflater LayoutInflater inflater = getActivity().getLayoutInflater(); View view = inflater.inflate(R.layout.dialog_progress, null); // Inflate and set the layout for the dialog // Pass null as the parent view because its going in the dialog layout builder.setView(view); if (canCancel) { builder.setNegativeButton(getString(android.R.string.cancel), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { ProgressDialog.this.getDialog().cancel(); isCancelled = true; } }); } Dialog result = builder.create(); result.setTitle(this.title); TextView text = (TextView) view.findViewById(R.id.dialogContent); text.setText(this.content); return result; }
From source file:de.awisus.refugeeaidleipzig.views.signup.FragmentSelectRole.java
@NonNull @Override/*from w w w . j a v a 2 s. c om*/ public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); View view = getActivity().getLayoutInflater().inflate(R.layout.fragment_select_user_role, null); setButtonListeners(view); builder.setView(view); Dialog dialog = builder.create(); dialog.setTitle(R.string.titel_select_role); return dialog; }
From source file:eu.masconsult.bgbanking.activity.fragment.ChooseAccountTypeFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(R.string.choose_account_type); return dialog; }
From source file:com.google.android.apps.gutenberg.AboutFragment.java
@NonNull @Override/*from ww w . j a v a 2s . c o m*/ public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(R.string.app_name); return dialog; }
From source file:com.raychenon.licensedroid.OpenSourceDialogFragment.java
@NonNull @Override//from w ww . j a va 2 s.c o m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(getString(R.string.licensedroid_dialog_title)); return dialog; }
From source file:com.iutiao.sdk.dialogs.RegisterDialog.java
@NonNull @Override//from w w w . j a v a 2 s . c o m public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.setTitle(getActivity().getString(R.string.com_iutiao_register)); return dialog; }