Instead of horizontal orientation, try LinearLayout android:orientation="vertical"
both the widgets will be displayed one above the other. hope this helps... On Dec 28, 4:53 pm, "Sarath Kamisetty" <[email protected]> wrote: > Hi, > > I want to display DatePicker and TimePicker widgets side by side on > the screen but when I use LinearLayout like below, half of the > TimePicker is not showing up. Both DatePicker and TimePicker widgets > seem to be too large and taking up lot of screen space. I tried > restricting their width and height to specific number of pixels but > thats cutting down the widget itself instead of making them look > smaller. Any idea which layout and what attributes I need to play > around with ? > > Thanks, > Sarath > > <LinearLayout android:orientation="horizontal" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <DatePicker > android:id="@+id/date_picker" > android:layout_width="wrap_content" > android:layout_height="wrap_content" /> > <TimePicker > android:id="@+id/time_picker" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > </LinearLayout> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

