Just in case if someone is facing the same problem, here's the solution: 
The datePicker basic layout is LinearLayout, so it's pretty simple to get 
it with getChildAt(int position) and change it's orientation to vertical. 
This made the trick for me. 

The other big problem about this datePicker is changing it's divider colors 
- it's NumberPicker divider color and it's CalendarView divider color. 
Changing the divider color and the related colors of CalendarView is pretty 
simple(it's done by changing the appropriate style items), but the dividers 
of the NumberPickers are kind of big problem. The real issue is that the 
field for changing the divider's drawable is a private one by default. So I 
managed to find some workarounds to this problem:

1. Use NP widget NumberPicker
2. Use Reflection to access the field "mSelectionDivider" and change it's 
value.

I hope these workarounds will help someone :)


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to