mercredi 5 août 2015

Custom extended Android DatePickerDialog without title


I've an extended DatePickerDialog, but I'm not able to hide the title (on 5.+).

I tried the requestWindowFeature function on some places, but I don't know where the right is.

public MyDatePickerDialog(Context context, OnDateSetListener listener, Reklamation reklamation, int year, int monthOfYear, int dayOfMonth) {
    super(context, listener, year, monthOfYear, dayOfMonth);
    // Check if we're running on Android 5.0 or higher
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        Log.d(getClass().getSimpleName(), "noTitle:" + requestWindowFeature(Window.FEATURE_NO_TITLE));
    }
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire