Hi radaee,
Would you mind to help me to modify it, because i cannot find the "PDFViewThumb.vSingleTap()"
and i am not fully understand,sorry.
Thanks again,
Andy
This is my code.
public class SuperProtectedPDFThumbView extends PDFThumbView {
protected PDFViewThumb myPdfThumb;
public SuperProtectedPDFThumbView(Context context, AttributeSet attrs) {
super(context, attrs);
Field privateStringField = null;
try {
privateStringField = PDFThumbView.class.getDeclaredField("m_thumb");
privateStringField.setAccessible(true);
} catch (NoSuchFieldException e1) {
e1.printStackTrace();
}
try {
myPdfThumb = (PDFViewThumb) privateStringField.get(this);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
System.out.println("fieldValue = " + myPdfThumb);
}
@Override
public void thumbOpen(Document doc, PDFThumbListener listener) {
// Global.selColor = 0x00000000;
// Global.inkColor = getResources().getColor(R.color.pink_dark);
myPdfThumb.vOpen(doc, 40, 0x00000000, this);
myPdfThumb.vSetThumbListener(listener);
myPdfThumb.vResize(getWidth(), getHeight());
}
public void thumbGap(int gap) {
myPdfThumb.vSetPageGap(gap);
}
@Override
public void OnPDFPageDisplayed(Canvas canvas, PDFVPage vpage) {
}
}