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

Find Next and Find Previous text

More
10 years 11 months ago #9693 by gabmor
Hi I'm checking the vFind method used by the DemoApp but the find next and find previous only highlight all the coincidences and markup the first or last, how can I implement a better find next and find previous.

PDFViewController
Code:
else if( arg0 == btn_find_next ) { String val = edit_find.getText().toString(); if( val != null && val != "" ) { if(m_find_str == val) { m_view.PDFFind(1); } else { m_find_str = val; m_view.PDFFindStart(val, false, false); m_view.PDFFind(1); } } }

PDFLayoutView
Code:
public final void PDFFindStart( String key, boolean match_case, boolean whole_word ) { m_layout.vFindStart(key, match_case, whole_word); } public final void PDFFind(int dir) { m_layout.vFind(dir); }
More
10 years 11 months ago #9694 by support
May you explain you aim and the user experience you would like to develop?
More
10 years 11 months ago #9695 by gabmor
Sure, thanks for the quick answer, I want the next method of finding not only highlight all the matches I want to go Travelling round , ie I click the first time , select the first match , the second time switches to the next match, and so on.
More
10 years 11 months ago #9696 by Davide
Hi,
what version of the library are you using?
Please check the last version here: www.radaeepdf.com/download/download-prev...34-radaeepdf-36beta2
More
10 years 11 months ago #9697 by gabmor
I'm using 3.5 for android studio, I will check the beta thanks
More
10 years 11 months ago #9698 by Davide
No, wait, we don't understand your needs.
You don't have to check this beta because the find method is the same.

Can you please better explain your needs?
Time to create page: 0.417 seconds
Powered by Kunena Forum