ThumbnailView Question - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: ThumbnailView Question

ThumbnailView Question 3 years 5 months ago #7054

  • Chanwoo Park
  • Chanwoo Park's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
  • 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 3 years 5 months ago #7056

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 744
  • Karma: 16
  • Thank you received: 56
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