Find Next and Find Previous text - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Find Next and Find Previous text

Find Next and Find Previous text 3 years 1 month ago #9693

  • gabmor
  • gabmor's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
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);
	}

Please Log in or Create an account to join the conversation.

Find Next and Find Previous text 3 years 1 month ago #9694

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
May you explain you aim and the user experience you would like to develop?

Please Log in or Create an account to join the conversation.

Find Next and Find Previous text 3 years 1 month ago #9695

  • gabmor
  • gabmor's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Find Next and Find Previous text 3 years 1 month ago #9696

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
what version of the library are you using?
Please check the last version here: www.radaeepdf.com/download/download-prev...34-radaeepdf-36beta2

Please Log in or Create an account to join the conversation.

Find Next and Find Previous text 3 years 1 month ago #9697

  • gabmor
  • gabmor's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
I'm using 3.5 for android studio, I will check the beta thanks

Please Log in or Create an account to join the conversation.

Find Next and Find Previous text 3 years 1 month ago #9698

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
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?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum