Example usage for android.app Dialog setTitle

List of usage examples for android.app Dialog setTitle

Introduction

In this page you can find the example usage for android.app Dialog setTitle.

Prototype

public void setTitle(@StringRes int titleId) 

Source Link

Document

Set the title text for this dialog's window.

Usage

From source file:de.awisus.refugeeaidleipzig.views.map.FragmentOfferInfo.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    View view = getActivity().getLayoutInflater().inflate(R.layout.fragment_show_offer, null);

    ImageView ivImage = (ImageView) view.findViewById(R.id.ivImage);
    TextView tvContent = (TextView) view.findViewById(R.id.tvContent);
    TextView tvAddress = (TextView) view.findViewById(R.id.tvAddress);

    tvContent.setText(angebot.getContent());
    ImageUtility.setIvImage(ivImage, angebot.getImageData());
    setTvAddress(tvAddress);//ww  w  . j av  a2 s.c  o  m

    builder.setView(view);

    Dialog dialog;
    dialog = builder.create();

    dialog.setTitle(angebot.toString());

    return dialog;
}

From source file:com.coinblesk.client.ui.dialogs.ReceiveDialogFragment.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog dialog = super.onCreateDialog(savedInstanceState);
    dialog.setTitle(R.string.fragment_receive_title);
    return dialog;
}

From source file:com.pileproject.drive.setting.machine.NxtPortConnectionFragment.java

@Override
@NonNull/*from   w w w  .j  a v  a 2s .  c o  m*/
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog dialog = new Dialog(getActivity());
    dialog.setTitle(R.string.setting_portConnection);
    return dialog;
}

From source file:de.awisus.refugeeaidleipzig.views.FragmentInfo.java

/**
 * Called when this dialogue is created; Android-specific
 * Inflates the layout, initialises text fields and sets their texts as well as the positive
 * button//from   w w w .  j  av  a  2  s . c o m
 * @param savedInstanceState Bundle of saved instance state
 * @return dialogue created by the AlertDialog.Builder
 */
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    View view = getActivity().getLayoutInflater().inflate(R.layout.fragment_info, null);

    TextView tvInfo = (TextView) view.findViewById(R.id.tvContent);

    if (inhalt == null) {
        tvInfo.setText(inhaltID);
    } else {
        tvInfo.setText(inhalt);
    }

    builder.setView(view);

    Dialog dialog;
    dialog = builder.create();

    dialog.setTitle(titel);

    return dialog;
}

From source file:im.neon.fragments.AccountsSelectionDialogFragment.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog d = super.onCreateDialog(savedInstanceState);
    d.setTitle(getString(R.string.choose_account));
    return d;//from ww  w  . j av  a2 s .c  o  m
}

From source file:com.rallydev.rallydroid.TaskListActivity.java

@Override
protected void PrepareDetailDialog(Dialog dialog, DomainObject selected) {
    Artifact selectedItem = (Artifact) selected;
    dialog.setTitle(selectedItem.getFormattedID());

    String description = selectedItem.getString("Description");
    String estimate = selectedItem.getString("Estimate");
    String todo = selectedItem.getString("ToDo");
    String actuals = selectedItem.getString("Actuals");
    boolean blocked = selectedItem.getBoolean("Blocked");
    String state = selectedItem.getString("State") + " " + (blocked ? "(BLOCKED)" : "(Not blocked)");

    ((TextView) dialog.findViewById(R.id.task_nameView)).setText(selectedItem.getName());
    ((TextView) dialog.findViewById(R.id.story_nameView)).setText(getTaskStoryName(selectedItem));
    ((TextView) dialog.findViewById(R.id.task_descriptionView)).setText(description);
    ((TextView) dialog.findViewById(R.id.task_stateView)).setText(state);
    ((TextView) dialog.findViewById(R.id.task_estimateView)).setText(estimate);
    ((TextView) dialog.findViewById(R.id.task_todoView)).setText(todo);
    ((TextView) dialog.findViewById(R.id.task_actualView)).setText(actuals);
}

From source file:org.gnucash.android.ui.report.dialog.DateRangePickerDialogFragment.java

@NonNull
@Override/* ww  w .  j av  a 2  s.co m*/
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog dialog = super.onCreateDialog(savedInstanceState);
    dialog.setTitle("Pick time range");
    return dialog;
}

From source file:mobisocial.musubi.ui.fragments.PrivacyProtectionDialog.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog d = super.onCreateDialog(savedInstanceState);
    d.setContentView(R.layout.sample_stats);
    d.setTitle("Privacy Protection");
    StringBuilder html = new StringBuilder();
    html.append("<html><p>Musubi was created as a research project at the Stanford Mobisocial Computing Lab ")
            .append("to let users share data without an intermediary owning the data.  ")
            .append("All the communicated data are owned by the users, stored on their own devices, and are encrypted on transit.  ")
            .append("We help you import friends from your existing social networks like Facebook and Google, ")
            .append("but we do not save any of your friends' information.</p>");
    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//from   w w  w .  j  a va2s.  c  om
        public void onClick(View v) {
            dismiss();
        }
    });
    return d;
}

From source file:org.lunci.dumbthing.dialog.AddDumbThingDialog.java

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    final Dialog dialog = super.onCreateDialog(savedInstanceState);
    dialog.setTitle(getResources().getString(R.string.add_dumb_thing));
    dialog.setCanceledOnTouchOutside(true);
    dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
    return dialog;
}

From source file:com.pileproject.drive.setting.machine.NxtThresholdFragment.java

@Override
@NonNull//from   www.  j ava 2 s  . c o m
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog dialog = new Dialog(getActivity());
    dialog.setTitle(R.string.setting_threshold);
    return dialog;
}