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

Reflow with vertical scrolling

More
IP: 111.196.243.160 5 years 9 months ago #15121 by radaee
Page.ReflowStart declared as:
public float ReflowStart( float width, float scale, boolean enable_images )
Code:
* @param width input width. * @param scale scale base to 72 DPI, 2.0 means 144 DPI. the reflowed text will displayed in scale * @param enable_images enable reflow images. * @return the height that reflow required.
that mean, reflow function need you input a width value to layout.
More
IP: 117.237.193.71 5 years 9 months ago #15122 by ankson
If I pass the width of page, scale and enable_image then ReflowStart method returns height ' 0 ' then how we can fix this issue?
More
IP: 111.196.243.160 5 years 9 months ago #15123 by radaee
if return 0, then ignore this page.
this mostly because the page has no element can be reflow.
for example: transparency group content will be ignored in reflow mode.
More
IP: 47.247.45.164 5 years 9 months ago #15124 by ankson
Which is the suitable class for achieving Text Reflow ---- PDFViewAct or PDFLayout ?
More
IP: 111.196.243.160 5 years 9 months ago #15125 by radaee
it is better, to create a new Activity.
derive from PDFLayout, may need to modify other related class, so not recommended.
More
IP: 47.247.81.48 5 years 9 months ago #15126 by ankson
In which overriden method should i call the ReflowStart() Method ?
Time to create page: 0.369 seconds
Powered by Kunena Forum