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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to