How to create an Page Control in android -
how create page control in android.... want move 1 page page, home screen in android device... displays current page 3 4 dots....
i've managed same doing like:
int currentscreen = 1; final gesturedetector gesturedetector = new gesturedetector( new mygesturedetector()); findviewbyid(r.id.homescreen).setontouchlistener( new view.ontouchlistener() { public boolean ontouch(view v, motionevent event) { if (gesturedetector.ontouchevent(event)) { return true; } else if (event.getaction() == motionevent.action_up || event.getaction() == motionevent.action_cancel) { ...detect scroll , change var...
as described here: horizontalscrollview within scrollview touch handling
and here: android horizontal scrollview behave iphone (paging)
Comments
Post a Comment