What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

DatePicker widget size.

tff

New Member
Would like to use a smaller DatePicker widget. I guessed I could shrink it with something like textSize, as in the following.

<DatePicker
android:id="@+id/dp_name"
android:textSize="10sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

Guess was not right. textSize appears to have no effect. I've tried "10px" as well as other numbers to no avail. Any ideas?

tx,
tff
 
Solved.

Would like to use a smaller DatePicker widget. I guessed I could shrink it with something like textSize, as in the following.

<DatePicker
android:id="@+id/dp_name"
android:textSize="10sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

Guess was not right. textSize appears to have no effect. I've tried "10px" as well as other numbers to no avail. Any ideas?

tx,
tff

Rather, than do this, I put it in a dialog that pops up using code analogous to what I found here:
Date Picker | Android Developers

It's not actually what I wanted, but it works well enough. Would still like to make that monstrosity smaller.
 
Back
Top