but that takes up whole screen ... I am now leaning towards
DatePickerDialog and TimePickerDialog widgets and provide buttons to
open these dialogs. Ideally, it would be nice to have a way to shrink
the TimePicker and DatePicker widgets easily.

On Mon, Dec 29, 2008 at 7:15 AM, anand <[email protected]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to