RadaeePDF.com :: Topic: ThumbnailView Question (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: ThumbnailView Question

ThumbnailView Question 3 years 3 weeks ago #7054

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
The administrator has disabled public write access.

ThumbnailView Question 3 years 3 weeks ago #7056

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 678
  • Thank you received: 47
  • Karma: 14
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
Last Edit: 3 years 3 weeks ago by poudel.
The administrator has disabled public write access.
Powered by Kunena Forum