How to make the TimePicker smaller

WillNZ picture WillNZ · Aug 7, 2012 · Viewed 13.5k times · Source

Is it possible to make the default TimePicker smaller in the activity xml? I have searched this but so far only found out how to create a custom time picker which I do not want to do, or create a popup window which I also don't want to have to do. Has anyone tried this with any success? My TimePicker is sitting in a tableRow in a scrollView. Cheers

Answer

Sanjay Bhimani picture Sanjay Bhimani · Nov 17, 2014

You can do this. I had also same problem. But Google helped me. You have to just change your XML file.

android:scaleY="0.90" & android:scaleX="0.90"

It will small your picker with percentage value which you provide.

Works only from API 11.