waiting for suggestion... On Aug 20, 10:26 am, sunrises <surya....@gmail.com> wrote: > Hi,thanks for your suggestions > I have a lot of images to show as slide show,I did it using thread > concepts in which a slide show thread continuously updates the UI for > every 10 seconds(time interval between images) using handler, when > user touches and moves his finger(horizontally towards left/right ) on > the screen then the slide show should forward/backward images, I tried > to accomplish it by implementing onTouch() method in OnTouchListener . > But I did not get smooth swipe at all..please correct me...here is my > code.. > public boolean onTouch(View v, MotionEvent event) { > switch (event.getAction()) { > case MotionEvent.ACTION_DOWN: > firstX=event.getX();//firstX is instance variable > break; > case MotionEvent.ACTION_MOVE: > if(firstX - event.getX() > SWIPE_DISTANCE){ // > SWIPE_DISTANCE value 120) > /* here the code to show the next > image by updating UI using handler and stops the slide show > thread for 10 secs after that the > slide show thread will starts again*/ > }else if( event.getX()-firstX > > SWIPE_DISTANCE){ > /* here the code to show the previous image by > updating UI using handler and stops the slide show > thread for 10 secs after that the > slide show thread will starts again*/ > } > } > }//end of method > On Aug 19, 11:49 pm, TreKing <treking...@gmail.com> wrote: > > > On Thu, Aug 19, 2010 at 6:46 AM, sunrises <surya....@gmail.com> wrote: > > > awaiting your Idea/suggestion > > On Thu, Aug 19, 2010 at 7:11 AM, sunrises <surya....@gmail.com> wrote: > > > No Solution? > > > You expect someone to solve you problem in 25 minutes? > > It doesn't matter how "urgent" you think your problem is, it's really not - > > especially not to the rest of us. > > > On Thu, Aug 19, 2010 at 6:46 AM, sunrises <surya....@gmail.com> wrote: > > > it forwards/ backwards more than one image,no smooth swipe > > > That tells us exactly nothing. If you actually want help, you'll have to > > elaborate on the problem (like what you're doing now to swipe, and how > > you've tried to fix the problem). > > > And do wait more than a half hour to bump your thread. > > > ------------------------------------------------------------------------------------------------- > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > transit tracking app for Android-powered devices
-- 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