Michael Meeks
a42f5034af
couple more file extension
2012-07-12 10:40:25 +01:00
Iain Billett
df82184b2a
Added DocumentViewer class to hide page navigation/caching details.
...
Change-Id: Ic201bea9c22bc567d6769201df260aa2a38c6c16
2012-07-11 19:58:05 +01:00
Iain Billett
b8c2ade611
Use page thumbnails for icons.
...
Change-Id: I5df6341e5d1d8d775d2676d4ef5a52a528c6615c
2012-07-04 18:38:24 +01:00
Iain Billett
731332e6cc
Moved headers in xml files. Save page 1 thumbnail in onDestroy.
...
Change-Id: I7586c6475a8e717f3db24a31dca2b1e31068edc2
2012-07-04 18:38:24 +01:00
Iain Billett
7e7eafb19f
Added licence headers on java & xml files.
...
Change-Id: I2b9a62e3426e7842baeac24cf122fc83b4f238da
2012-07-04 18:38:24 +01:00
Iain Billett
478ba74ac4
removed progress bar - layout issues - will come back to it.
...
Change-Id: Ie949a416d2898750e8d76bd119ecb462d920d6ff
2012-07-04 18:38:24 +01:00
Iain Billett
e11cd35387
Added progress bar.
2012-07-04 18:38:23 +01:00
Iain Billett
75e43a66dc
Some optimisations of the open method to re use page views where possible. work in progress
2012-07-04 18:38:23 +01:00
Tor Lillqvist
daa5157a63
This is Java, not C++
...
Change-Id: I287fcb74ca4351867c27035c6d82def93c044056
2012-07-01 09:43:43 +03:00
Tor Lillqvist
f7e4239ce4
Update for SDK tools rev 20
...
Change-Id: I482d0a488e9de5b59ce74b9c4057b4103fb048dc
2012-06-30 10:16:05 +03:00
Tor Lillqvist
8841e75d5a
Hacking on on-demand multiple-level-of-detail quad-tree ideas
...
Change-Id: Ie5efb45d401721e844e3137474c1a7473a1ac144
2012-06-30 10:16:01 +03:00
Michael Meeks
98ec4db47a
android: add more extensions, fix build issue
2012-06-29 16:04:01 +01:00
Michael Meeks
5f091e66d7
android: cleanup the file extension guessing and expand it for prettiness
2012-06-29 15:54:09 +01:00
Iain Billett
06b935baa5
First draft of "navigator", a strip of "live" thumbnails which are clickable.
...
Open method to open random page, not first.
Put some UI set up in documentLoadTask as the UI requires the number of pages in the document which is only know on load.
2012-06-28 19:45:32 +01:00
Iain Billett
797df2912a
Some styling of document viewer. Transparent overlayed action bar with hide/show on tap. Navigation overlay with page thumbnails.
2012-06-28 19:45:31 +01:00
Tor Lillqvist
c793a57f54
Use "largeHeap" and "hardwareAccelerated" (quite visible improvement)
...
Change-Id: I853ab39599fdc8d1b1eae5d2b2748f39535ebf64
2012-06-27 17:29:13 +03:00
Tor Lillqvist
0179c96282
Adapt page switch animation duration to fling velocity
...
Change-Id: I30e177b45b0e25d92fd7dea02ffe4e9c0731dce5
2012-06-27 12:58:50 +03:00
Tor Lillqvist
5bfb819581
Use GestureImageView again but still do handle page changes
...
Make the GestureImageView constructors take a OnGestureListener, and
store that, Move the FlingListener class into
GestureImageViewTouchListener so that FlingListener has access to the
fields of GestureImageViewTouchListener. If the image is fully zoomed
out and can't be dragged, pass flings on up, to DocumentLoader's
gestureListener.
Change-Id: I574280de23bdab2772a361833f561dff3e182bcd
2012-06-27 12:58:37 +03:00
Tor Lillqvist
6263315825
Whitespace cleanup
...
Change-Id: I52590908e6ba59c19aded2771d779c1cfa3a45ea
2012-06-27 12:56:31 +03:00
Iain Billett
478465f216
Fixed some erroneous package references.
2012-06-25 14:26:18 +01:00
Tor Lillqvist
cd43461697
Add some "thinking aloud" style comments
...
Change-Id: Ib4a57649ec98bcbce851687633f35e52771f137a
2012-06-25 09:12:11 +03:00
Iain Billett
a84eb85c35
Fixed file opening.
2012-06-22 21:28:50 +01:00
Iain Billett
c19c312c87
LibreOffice4Android can now open actual .odt documents from the file explorer.
2012-06-22 18:25:53 +01:00
Iain Billett
3e0c6d83d5
LibreOffice4Android now builds.
2012-06-22 18:16:06 +01:00
Iain Billett
d3949d453d
An new project to combine DocumentLoader with the Android UI. (Not building - see manifest)
2012-06-22 17:33:51 +01:00
Iain Billett
520fbf75e3
Added a preferences activity to set default behaviour.
2012-06-22 13:15:53 +01:00
Tor Lillqvist
785221e74c
Use actual view size instead of 1024x1024
...
Change-Id: I66ae59fe88411f3f0d2423fd6f1412f7ac0e1a36
2012-06-20 15:14:57 +03:00
Tor Lillqvist
08a1763147
Parametrize the page cache size
...
Change-Id: Ia3d5538feaf1fc0aad4a0f1d901ae7bd22eae61d
2012-06-20 15:14:43 +03:00
Tor Lillqvist
f3748935be
Further tweaks to the async code
...
Change-Id: Ib1e76687054a254a9918a4391a1cb512c59c6515
2012-06-20 12:40:51 +03:00
Tor Lillqvist
7bcadeadfe
Asynchronous document loading and page rendering
...
Change-Id: I085024b6bfccf6846167a5de316912a395f4e301
2012-06-19 19:29:41 +03:00
Iain Billett
5e380fbdcd
Added file sorting - alphabetical, by size, by last modified.
2012-06-19 17:02:56 +01:00
Iain Billett
b059deda1d
Re-organised the Android UI code to make better use of Android lifecycle events. A little code streamlining, also.
2012-06-19 17:02:55 +01:00
Tor Lillqvist
daaa550121
Pass also scale and offset to createScreenCompatibleDeviceUsingBuffer()
...
Pass on to VirtualDevice where used to set the MapMode of the device
appropriately. Adapt DocumentLoader, use to scale the page rendering
to exactly fit the virtual device.
Change-Id: I4b0bc67e12114d3d9d493ff1aca2ef5d2cc78912
2012-06-18 22:38:41 +03:00
Iain Billett
907ad314fb
Some UI tweeks - trying to get long filenames to display nicely.
2012-06-15 23:18:39 +01:00
Iain Billett
889ff81df6
Fixed folder navigation in list view.
2012-06-15 21:59:50 +01:00
Iain Billett
d848fac2d7
Fixed view type persistence problem.
2012-06-15 21:59:50 +01:00
Iain Billett
2b8b434325
Fix view toggle menu item label.
2012-06-15 21:59:50 +01:00
Iain Billett
4310384030
Added a list view to the Android UI.
2012-06-15 16:12:05 +01:00
Tor Lillqvist
28cdc43f2d
Make sure homeDirectory exists
...
Change-Id: I3a89bcac3bf46405e8e474f7765d74c643b7ab43
2012-06-15 13:53:07 +03:00
Tor Lillqvist
00320c71c1
Bin two unneeded (and not found!?) imports
...
Change-Id: I4b2f716f4a40fe4be91e204d8c78dc8c5e6a439e
2012-06-15 13:52:59 +03:00
Tor Lillqvist
61c6c7f8f7
Experiment with ViewFlipper
...
Change-Id: I0b1523b5c898375b5cf23294b0a9462a6a651e32
2012-06-14 22:03:48 +03:00
Iain Billett
06a5ea8385
More work on the file explorer. Added file type filtering. Maintains state if user switches to viewer and back.
2012-06-14 17:33:16 +01:00
Iain Billett
246ba71f56
some eclipse projects with pure Android UI stuff. LO code not yet integrated.
2012-06-14 12:49:16 +01:00
Tor Lillqvist
3ea3c6afa2
Use XToolkit2::createScreenCompatibleDeviceUsingBuffer
...
Render directly to a direct ByteBuffer allocated on the Java side.
Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
2012-06-12 13:50:50 +03:00
Tor Lillqvist
e243a5b462
Verify that we do get the RGBX format DIB we expect
...
Change-Id: I9f44547fbc5e13daa297720dfd814d2192114125
2012-06-07 21:54:20 +03:00
Tor Lillqvist
8ae077379e
Use 32bpp bitmaps on Android (and iOS)
...
Modify DocumentLoader correspondingly. Take Android bug 32588 into
account.
Ideal would be to extend the XDevice stuff, or something, so that one
could hand it a pre-allocated RGBA buffer into which the
drawing/rendering would go. Then one could get rid of the silly
convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB
headers (and thus, I guess, has to copy and allocate another
copy). Will see.
Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
2012-06-05 17:17:41 +03:00
Tor Lillqvist
5dc2b43e46
Use Jason Polites's GestureImageView, and some cleanup
...
Change-Id: I916c36b3b55681cdf8f0d1ffd0236e54f3b67b86
2012-05-31 22:32:40 +03:00
Tor Lillqvist
8c803ef232
Display the rendered document
...
Change-Id: Ie0735d4eb903b38a44bef8110bf520cfde54cb09
2012-05-31 16:20:54 +03:00
Tor Lillqvist
82f6505456
Progress finally
...
Now I get (a page of) the document rendered into a
bitmap. Unfortunately css.awt.XBitmap::getDIB() provides an in-core
24-bit (BGR) BMP file. (Yes, despite the name, it's not just the DIB,
but is prefixed with a BMP file header.) Android's Image class wants
RGBA. Hmm.
Change-Id: Ie0effef20751e1959644861af358d81538b6d6ea
2012-05-31 00:00:51 +03:00
Tor Lillqvist
d69bcc9979
Getting closer, maybe
...
Change-Id: Ifcfdd33631c257d2cf6f54fe0d00444200f48335
2012-05-31 00:00:51 +03:00