title: Disable keyboard input on TimePicker
body: <p>I want to disable keyboard input on TimePicker. Do you have an idea to solve this problem? Cause it's just annoying.</p>
  
  <p>Thanks in advance!</p>
  
  <p>By the way I tried this very popular solution <code>setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);</code>but it didn't work on my code.</p>
  
  <p>Here is my code;</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code> public void selectTimeToDisplay(View view) {
      DialogFragment dialogFragment = new DisplayTimeFragment();
      dialogFragment.show(getSupportFragmentManager(), "DatePicker");
  }
  
  public class DisplayTimeFragment extends DialogFragment implements TimePickerDialog.OnTimeSetListener {
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
  
          final Calendar c= Calendar.getInstance();
          int hour = c.get(Calendar.HOUR_OF_DAY);
          int minute = c.get(Calendar.MINUTE);
          return new TimePickerDialog(getActivity(), this, hour, minute,
                  DateFormat.is24HourFormat(getActivity()));
  
      }
      @Override
      public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
          view.setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);//doesnt work
          setSelectedTime(hourOfDay,minute);
  
      }
      public void setSelectedTime(int hourOfDay,int minute) {
  
  
           saat1.setText(hourOfDay+":"+minute);}
  </code></pre>
  
  <p><strong>activity_main.xml</strong></p>
  
  <pre><code>&lt;EditText
      android:layout_width="70dp"
      android:layout_height="wrap_content"
      android:inputType="time"
      android:ems="10"
      android:id="@+id/bolme1saat"
      android:layout_gravity="center_horizontal"
      android:onClick="selectTimeToDisplay"
      android:layout_above="@+id/textView4"
      android:layout_alignStart="@+id/bolme2saat"/&gt;
  </code></pre>