DatePicker widget size.

Discussion in 'Android App Developers' started by tff, Oct 1, 2010.

  1. tff

    tff New Member

    Joined:
    Jul 16, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    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
     
  2. tff

    tff New Member

    Joined:
    Jul 16, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Solved.

    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.
     
Search tags for this page
android datepicker height
,
android datepicker resize
,

android datepicker size

,
android datepicker small size
,
android datepicker text size
,
android make datepicker smaller
,
android timepicker size
,
change size of datepicker android
,
how to resize datepicker in android
,
resize datepicker android