Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

ThumbnailView Question

More
IP: 192.168.0.71 11 years 8 months ago #7054 by Chanwoo Park
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
More
IP: 192.168.0.156 11 years 8 months ago - 11 years 8 months ago #7056 by Davide
Replied by Davide on topic ThumbnailView Question
Hi,

1) To resize thumbnails try this:
Code:
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: 11 years 8 months ago by poudel.
Time to create page: 0.478 seconds
Powered by Kunena Forum