Code example for DialogFragment

Methods: onCreate

0
 
public class AboutFragment extends DialogFragment {
 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    } 
 
    @Override 
    public android.view.View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        if (Util.isTablet(getActivity()))
            getDialog().setTitle(getString(R.string.about));
        ViewGroup v = (ViewGroup)inflater.inflate(R.layout.about_view, container, false);
        if (v != null) {
            new AboutView(v, getActivity());
        } 
        return v;
    } 
 
    /**