i have a AnalogClock in layout. if i touch the AnalogClock the next activity will be come.
how to write onTouch event for AnalogClock. i use this following code:
AnalogClock time;
time =(AnalogClock)findViewbyId(R.id.Widget44);
time.(i do not get any function list) please correct me.
Check the documentation here,
AnalogClockinherits fromViewand therefore you can use the methodssetOnClickListener(...)orsetOnTouchListener(...)which should satisfy your needs.