title: Android: TimePicker setIs24HourView not working
body: <p>I am trying to use the TimePicker in the 24 hour format and I am using setIs24HourView= true, but I am still not getting 24 hour format on the TimePicker. Here is my code in the onCreate of the Activity.</p>
  
  <pre><code>    timePicker = (TimePicker) findViewById(R.id.timePicker1);
      timePicker.setIs24HourView(true);
  </code></pre>
  
  <p>I even tried timePicker.setCurrentHour(cal.HOUR_OF_DAY) after setIs24HourView, but I am not able to see the 24 hour format on the TimePicker.</p>
  
  <pre><code>&lt;TimePicker
      android:id="@+id/timePicker1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="110dp" /&gt;
  </code></pre>
  
  <p>Am I missing anything here?</p>
  
  <p><img src="https://i.stack.imgur.com/UHJoY.jpg" alt="enter image description here"></p>