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

How to search and find text occurences in a PDF?

More
10 years 7 months ago #10238 by micrad
I am having an instance of PDFReader in my app. I want to display an EditText next to it, with a "Previous match" and "Next match", so the user can navigate from one math to another.

How can I do that?
Can someone point me to an example or tutorial?

Best regards,
Michael
More
10 years 7 months ago #10247 by Davide
Hi,
i suggest you to check reader.xml of PDFReader layout folder.

These are the components used in the demo project to create the search box
Code:
<LinearLayout android:id="@+id/bar_find" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentTop="false" android:layout_centerInParent="false" > <EditText android:id="@+id/txt_find" android:layout_width="150dp" android:layout_height="40dp" android:ems="10" android:text="the" /> <Button android:id="@+id/btn_prev" style="?android:attr/buttonStyleSmall" android:layout_width="40dp" android:layout_height="wrap_content" android:text="&lt;" /> <Button android:id="@+id/btn_next" style="?android:attr/buttonStyleSmall" android:layout_width="40dp" android:layout_height="wrap_content" android:text=">" /> </LinearLayout>
Time to create page: 0.384 seconds
Powered by Kunena Forum