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
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
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);
}