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
The android:scaleX="0.7" is what shrinked the visible picker (it works for DatePicker and TimePicker ) and the android:layout_marginLeft="-30dp" allowed for the space to be reduced.
@Andrew When you add android:scaleX="0.60" and android:scaleY="0.60" , it will reduce the size of picker to 60% of actual size, So remaining 40% will look like empty white border around the picker.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With