Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

How to lock the current page 11 years 4 months ago #912

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
thank you I have solved this, I followed the code in the read me document :cheer:
The topic has been locked.

How to lock the current page 10 years 6 months ago #4252

  • aminnouri
  • aminnouri's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
i have this method in my code:

public boolean onTouchEvent(MotionEvent event)
{
if( m_view == null ) return false;
if( m_view.vGetLock() == 3 )
{
if( onTouchInk(event) ) return true;
if( onTouchRect(event) ) return true;
if( onTouchEllipse(event) ) return true;
if( onTouchNote(event) ) return true;
if( onTouchLine(event) ) return true;
if( onTouchAnnot(event) ) return true;
}
return m_view.vTouchEvent(event);

}



and i customize that to this:

public boolean onTouchEvent(MotionEvent event)
{
boolean result = true;
if( m_view == null ) return false;
if( m_view.vGetLock() == 3 )
{
if( onTouchInk(event) ) return true;
if( onTouchRect(event) ) return true;
if( onTouchEllipse(event) ) return true;
if( onTouchNote(event) ) return true;
if( onTouchLine(event) ) return true;
if( onTouchAnnot(event) ) return true;
}
if(!zoom_status)
{
result = m_view.vTouchEvent(event);
}
return result;
}

but when zoom don't work any thing and i can't even scroll!
plz help!
The topic has been locked.

How to lock the current page 10 years 6 months ago #4255

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
not understand, what you want?
The topic has been locked.

How to lock the current page 10 years 6 months ago #4256

  • aminnouri
  • aminnouri's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
i want when in zoom don't goto next page, it means in zoom swipe doesn't work.
zoom_status is a flag that show that page in zoom or not
The topic has been locked.

How to lock the current page 10 years 6 months ago #4258

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
pages shall not be swiped, while zooming.
swipe only happen when zoom finished or just finished.

in single page mode or dual page mode.
when you finished zooming operation, current page may changes, depends on the fixed point and scale value.
in this scene, you can save pageno, before zooming, and restore current pageno just finished zooming.
Last edit: by .
The topic has been locked.

How to lock the current page 10 years 6 months ago #4261

  • aminnouri
  • aminnouri's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
my problem is not paging while zooming(in zoom process). my problem is i want lock swipe when a user zoom on a page(when zoom finished), swipe unlocked when zoom out to whole the page (when zoom finished).
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum