@@ -0,0 +1,1345 @@
+package org.app.application.ui.dialogs;%0A%0Aimport android.app.Dialog;%0Aimport android.content.DialogInterface;%0Aimport android.os.Bundle;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.v4.app.DialogFragment;%0Aimport android.support.v7.app.AlertDialog;%0Aimport android.widget.Toast;%0A%0Aimport org.app.application.R;%0Aimport org.app.material.widget.NumberPicker;%0A%0Apublic class NumberPickerDialog extends DialogFragment %7B%0A%0A    @NonNull @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState) %7B%0A        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());%0A        final NumberPicker picker = new NumberPicker(getActivity());%0A        picker.setmMinValue(0);%0A        picker.setmMaxValue(100);%0A        picker.setValue(10);%0A        picker.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);%0A%0A        builder.setView(picker);%0A        builder.setTitle(R.string.NumberPicker);%0A        builder.setNegativeButton(R.string.Cancel, null);%0A        builder.setPositiveButton(R.string.Done, new DialogInterface.OnClickListener() %7B%0A            @Override%0A            public void onClick(DialogInterface dialog, int which) %7B%0A                Toast.makeText(getActivity(), getString(R.string.Value, picker.getValue()), Toast.LENGTH_SHORT).show();%0A            %7D%0A        %7D);%0A%0A        return builder.create();%0A    %7D%0A%7D

Update demo app