You can do like this,

DatePicker picker;
ViewGroup childpicker;

childpicker = (ViewGroup)
findViewById(Resources.getSystem().getIdentifier("month" /*rest is:
day, year*/,    "id", "android"));

EditText textview = (EditText)
picker.findViewById(Resources.getSystem().getIdentifier("timepicker_input",
"id",  "android"));

textview.setTextColor(Color.GREEN);

or else create on style ,call it for layout background ..
like this

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android";>

    <style name="Theme.SelectDate"
parent="@android:style/Theme.Holo.NoActionBar">
        <item name="android:editTextStyle">@style/Widget.EditText.Black</item>
    </style>

    <style name="Widget.EditText.Black" parent="@android:style/Widget.EditText">
        <item name="android:textColor">@color/black</item>
    </style>

</resources>



On Tue, Aug 7, 2012 at 4:38 PM, Mulsaniya Bhadresh <[email protected]
> wrote:

> u use custom datePicker library?
>
>
> On Tue, Aug 7, 2012 at 4:35 PM, sweta <[email protected]> wrote:
>
>> Hi,
>>
>> Kindly let me know how to change color, font size of text for datepicker
>> widget.
>>
>> Thanks
>>
>> --
>> 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
>
>
>  --
> 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
>

-- 
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