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

TOPIC:

ThumbnailView Question 9 years 7 months ago #7054

  • Chanwoo Park
  • Chanwoo Park's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi,

1) I'm trying to resize thumbnails. Could you tell me which method should I call ?

public void thumbOpen( Document doc, PDFThumbListener listener )
{
m_thumb.vOpen(doc, 8, 0x40CCCCCC, this);
m_thumb.vSetThumbListener(listener);
m_thumb.vResize(2*getWidth(), 2*getHeight()); --> I've tried this, but didn't work.
}


2) Also, trying to find out how I can make a certain thumbnail view bigger when I touch that thumbnail view. (or double-tap)
For example, when I touch Page 3 Thumbnail, a pop-up view which is three times bigger than the original will show up while Page 1, 2, 4, 5, .. will remain the same.


Thanks

Please Log in or Create an account to join the conversation.

ThumbnailView Question 9 years 7 months ago #7056

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,

1) To resize thumbnails try this:
public void thumbOpen( Document doc, PDFThumbListener listener )
{
m_thumb.vOpen(doc, 8, 0x40CCCCCC, this);
m_thumb.vSetThumbListener(listener);
m_thumb.vResize(getWidth(), getHeight());
LayoutParams lp = getLayoutParams();
lp.height = lp.height * 2;
lp.width = lp.width * 2;
setLayoutParams(lp);
}

Or you can even change the size of thumbnails in reader.xml

2) You can implement it yourself, check onTouchEvent(MotionEvent) method in PDFThumbView class

Please Log in or Create an account to join the conversation.

Last edit: by poudel.
  • Page:
  • 1
Powered by Kunena Forum