- Posts: 17
- Thank you received: 0
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
10 years 11 months ago #9693
by gabmor
Find Next and Find Previous text was created 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
PDFLayoutView
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);
}
10 years 11 months ago #9694
by support
Replied by support on topic Find Next and Find Previous text
May you explain you aim and the user experience you would like to develop?
10 years 11 months ago #9695
by gabmor
Replied by gabmor on topic Find Next and Find Previous text
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.
10 years 11 months ago #9696
by Davide
Replied by Davide on topic Find Next and Find Previous text
Hi,
what version of the library are you using?
Please check the last version here: www.radaeepdf.com/download/download-prev...34-radaeepdf-36beta2
what version of the library are you using?
Please check the last version here: www.radaeepdf.com/download/download-prev...34-radaeepdf-36beta2
10 years 11 months ago #9697
by gabmor
Replied by gabmor on topic Find Next and Find Previous text
I'm using 3.5 for android studio, I will check the beta thanks
10 years 11 months ago #9698
by Davide
Replied by Davide on topic Find Next and Find Previous text
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?
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