Example usage for android.support.v4.app Dialog setTitle

List of usage examples for android.support.v4.app Dialog setTitle

Introduction

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

Prototype

public void setTitle(int titleId) 

Source Link

Document

Set the title text for this dialog's window.

Usage

From source file:at.jclehner.rxdroid.DrugSupplyEditFragment.java

@Override
public Dialog onCreateDialog(Bundle icicle) {
    final Drug drug = getDrug();
    final Fraction value;

    if (icicle != null)
        value = icicle.getParcelable("value");
    else//from   www  .j a va  2 s. com
        value = drug.getCurrentSupply();

    final Dialog d = new Dialog(getActivity(), value, drug.getRefillSize(), mListener);
    d.setTitle(getString(R.string._title_supply_edit, drug.getName()));
    return d;
}