TimePicker theme

by Michael Barber » Fri, 22 Oct 2010 05:35:34 GMT


Sponsored Links
 I have been searching furiously for a way to change the TimePicker,
all I can find are older posts and I know Android's came a long way
since 2009, so here goes, how can I theme/change the TimePicker
dialog?

in the source code I have found:

/**
  81      * @param context Parent.
  82      * @param theme the theme to apply to this dialog
  83      * @param callBack How parent is notified.
  84      * @param hourOfDay The initial hour.
  85      * @param minute The initial minute.
  86      * @param is24HourView Whether this is a 24 hour view, or AM/
PM.
  87      */
  88     public TimePickerDialog(Context context,
  89             int theme,
  90             OnTimeSetListener callBack,
  91             int hourOfDay, int minute, boolean is24HourView) {
  92         super(context, theme);

So, I'm a total newbie to android coding, but is there a way to change
this theme variable? if so, what do I feed it? should I make a program
like a service in the background that just intercepts the dialog and
inserts my theme or what? I know my questions are pretty vauge but any
help would be appreciated!

--



TimePicker theme

by TreKing » Sat, 23 Oct 2010 02:14:49 GMT


 



Extend the class, override the constructor, and send it whatever you want
instead?



ID of a theme resource, I assume.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--


Sponsored Links


Other Threads

1. file change notification permission for native c application?

There is no permission needed to get file change notifications, but you do
need to have general permission to access whatever file/dir you re watching,
and applications have a very limited set of the file system that they have
permission to.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

2. I'm really new

Hey everyone I am really new to coding for the android, I have
recently become disgusted with the iPhone and Apple inc. as a whole.

I have a Development environment setup on my laptop using Ubuntu,
Eclipse, and the Android SDK, I got the hello world program to work
and it was great.  I need some direction, please let me know where to
start to get my programming skills sharpened for the Android,
thanks!!!

--~--~---------~--~----~------------~-------~--~----~

3. AnalogClock - how do i set it to show 18:50 in my app and never change?

4. Import SMS?

5. Fwd: Alarm Manager

6. hey, what happened to my post about my eclipse install program

7. Next-gen USA Phones