Ale,

1 - You can model your notification on the type of interface callback mechanism used by Android views and widgets:

http://developer.android.com/reference/android/view/View.html#setOnClickListener(android.view.View.OnClickListener)

In your case, you'd define your own interface with a notification method (onCountdownReachedZero or something).

2 - Search for "declare styleable". This is the first link from Google:

http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/

-- Kostya

10.01.2011 18:06, Ale пишет:
Hi,

I've developed a custom (compound) control with a count-down progress
bar that I want to embed in some my activities. Now I have the
following questions:

1 - I want, when the count down stops, to let the activity that
contains the control that the count down has stopped. How to do that?

2 - From Android documentation I read the following:

"Note that you also might introduce your own attributes and parameters
into the XML that can be pulled out and used by your constructor"

But how? Do I just need to declare in the control my own attributes,
and how to declare them in XML?

Thank you in advance!



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to