1522 Commits

Author SHA1 Message Date
Tomaž Vajngerl
2675d681df android: add README
Change-Id: I7a2b3cb487b4dfe290bff36e3766357fbbc84fba
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
25f0d5772b android: add contains (hit test) to CanvasElement interface
Change-Id: Ic0022790c9ee1a5be1352eba0815e0d63ae17025
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
16d8839c24 android: rename graphic selection and handle
Change-Id: I7bf89b92190ba37535fa89118269d706d6bf05d9
2015-03-30 09:23:51 +02:00
Tomaž Vajngerl
b1def00ac3 android: introduce CanvasElement interface
Change-Id: Ic3cb636e397c110af54974159892b32b6c4c33c1
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
ba93e70c9f android: fix handle and selection behaviour, clean-up
Change-Id: I1f4404b1beb8dc3d5f64c21443c8e50cefe6fc63
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
2f6c4d9937 android: increase handle hit area
Change-Id: I0148815d9152c0bcd7e3d724ebdd0bc50a4c4c9a
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
aa5a78cf8b android: move handles into GraphicSelectionCanvasElement
Change-Id: Ib372b4fac35ae77bf06c65913b142ae3e80b0eb5
2015-03-30 09:23:50 +02:00
Jack Leigh
e41e571072 android: Bump to android-21
Change-Id: Ifbe9a316795fc0519119aa9420152118f3926653
Reviewed-on: https://gerrit.libreoffice.org/14946
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:46 +02:00
Jack Leigh
f8a0d0e62a android: Get search button to show again
Even though it doesn't work...

Change-Id: Ia84da613fd1e5cb3b2c9c5fa3d0458056b9cb728
Reviewed-on: https://gerrit.libreoffice.org/14950
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:46 +02:00
Jack Leigh
f23e1cb51c android: Migrate to Toolbar in file browser
Change-Id: Ib5e3d0d39268437c179973ba4e785a719cdc351a
Reviewed-on: https://gerrit.libreoffice.org/14949
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Jack Leigh
ce6b4d5ed3 android: Change to v7 support ActionBar and new theme
Change-Id: I39d273e397a3bcbfc1d7140dca4af89858f2c06a
Reviewed-on: https://gerrit.libreoffice.org/14948
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Jack Leigh
3bab59b406 android: Remove striping on ActionBar
Change-Id: I7b675e7cf5b28558be57e293547531a9369c3462
Reviewed-on: https://gerrit.libreoffice.org/14947
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Tomaž Vajngerl
befa877c27 android: fix wrong TextCursorView class name, format xml
Change-Id: I54d68cd5ba17bae675c8da421f2e661ac20abe77
2015-03-30 09:23:45 +02:00
Miklos Vajna
79dac94c5d android: add doc on how to set up jdb
Change-Id: I15427518bc82e3da147b74c01bb2e0480fc32f25
2015-03-30 09:23:37 +02:00
Tor Lillqvist
4cc1bcbaed Kill dead <touch/touch.h> API
Has all been obsoleted by LibreOfficeKit.

Only some MOBILE_* constant #defines are now left in touch.h, but probably
those are used only by dead code.

Change-Id: I646945c4408b4e6cd5510da535cfc12088dd391c
2015-03-24 15:30:27 +02:00
Tomaž Vajngerl
a9fd1afd3b android: reorganize (overlay, canvas packages), move classes
Added new packages:
* overlay - overlay elements like TextCursor*
* canvas - classes that its only purpose is to draw to canvas

Change-Id: I0dec06e76819231dacae26d24e43bb6315bba6e4
2015-03-23 09:19:08 +01:00
Tomaž Vajngerl
205b69526c android: extract drawing of selection into its own class
Change-Id: I8e94edeafbf5b7fd5f02a1429893c4b803c71afa
2015-03-23 09:19:08 +01:00
Tomaž Vajngerl
19c59a34eb android: remove import android.util.Log from InvalidationHandler
Change-Id: Ie944ca77abf13c4ac2c3b9c492d56878bfffba55
2015-03-23 09:19:08 +01:00
Miklos Vajna
a20167ba50 fold README.Android into android/README
Change-Id: Ifaeb87427d6e2e0c2bb0fcd19e0d39bf15c76973
2015-03-23 09:19:05 +01:00
Miklos Vajna
2b5cf23910 android: when in selection, avoid showing the middle handle
editeng sends LOK_CALLBACK_CURSOR_VISIBLE after the text selection is
already created. The effect of this is that after a long push on a word
you get not only the selection overlay + the start/end handles, but also
the middle one, which is not expected. Just check if we're in a
selection already, and if so, don't react to
LOK_CALLBACK_CURSOR_VISIBLE=true.

Change-Id: I939c957feb7889dfb1997fac1051cb4eaa77004c
2015-03-23 09:19:05 +01:00
Miklos Vajna
b0cb454f4a android: add debugrun Makefile target
Also, if we are at it:

- clean up 'run' as well: since the doc browser is the default activity,
  no need to pass the test doc path anymore
- make 'install' not depend on build: a full build would need a toplevel
  'make' anyway

Change-Id: Ia55d52f767ab3e0be02a753a95b2aac02f8491cc
2015-03-23 09:19:05 +01:00
Tomaž Vajngerl
6d9610c694 android: a bit smaller hit area for selection handles
Change-Id: I985b7b22c4794862a421ad797b907e33266c2c27
2015-03-23 09:19:04 +01:00
Tomaž Vajngerl
892d6813ad android: Hit test for handles, show resize rect
Change-Id: Ibf9f98968fd9007be6dc5481d1652923ecb98b89
2015-03-23 09:19:03 +01:00
Tomaž Vajngerl
7f4ac90254 android: move handle code to DrawElementHandle
Change-Id: Ica316ed9660e235e756ef380da8f441c976de07f
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
e48d983d55 android: draw also the center handles for graphic selection
Change-Id: Ic466e9efc0cb97fb39e94624f018ab5b98a54929
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
907583d10c android: change cursor blink time to a constant static field
Change-Id: I49947cccfd2662533da3087cb1f04dc91014cfb0
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
86548b6bfe android: move graphic selection, use a touch event to transmit
Initiali implementation moving of graphic selection in
TextCursorView. Transmit start and end coordinates of the move
using a touch event with a special type "GraphicSelectionStart"
and "GraphicSelectionEnd" set.

In LOKitThread process the event and delegate the request to the
TileProvider (setGraphicSelectionStart/setGraphicSelectionEnd).

Change-Id: Iccceeb3d4de2fc1761b23fc5ede99d00d5e803aa
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
b053778685 android: set graphic selection via TileProvider
Change-Id: I26c3eb03ad3bcc23bed380e873d353bc2941de9a
2015-03-23 09:19:01 +01:00
Tomaž Vajngerl
93fbb7369d android: TileProvider is unused in InvalidationHandler
Change-Id: I455e58f4395cb463efa888fe69ee7ea48b4681fb
2015-03-23 09:19:01 +01:00
Miklos Vajna
7ba960e1c5 android: clean up no longer needed com.polites library in LOAndroi3
That was something from the other LibreOffice4Android that got merged
with LOAndroid3. The document browser doesn't use it, so we don't need
it anymore.

Change-Id: I5446eb7a0fe6e0de81532e981a0853da16910f54
2015-03-23 09:18:59 +01:00
Tomaž Vajngerl
f0f0ce28b0 android: add comment to many classes and methods
Change-Id: I49d9bd7c702c260ea66ef211edbaf5e106264bb6
2015-03-23 09:18:59 +01:00
Miklos Vajna
2a081a0f9b Rectangle::toString(): output position, then size
This order seems to be less confusing.

Change-Id: I95a7e3e2f6244915c820bb86e67745a777714e2d
2015-03-23 09:18:58 +01:00
Miklos Vajna
43a503cfc9 android: add missing license headers and modelines
Change-Id: I66b2fc7ee846d6865b11cf1cbb168a6e5fab2eea
2015-03-23 09:18:57 +01:00
Miklos Vajna
2479fae410 android: add toolbar button to force-show the soft keyboard
Change-Id: I1758f4db7b6894df66d721af77092754b0252100
2015-03-16 09:38:12 +01:00
Miklos Vajna
8654e16f6d android: also hide keyboard on graphic selection
Change-Id: I597f7099405a244f54966c203483dfda22cfbcc9
2015-03-16 09:38:11 +01:00
Miklos Vajna
6e90795d71 android: hide soft keyboard when scrolling
Change-Id: Ia840cd68d7af7a6948ad5766b56a3dc27cb8795b
2015-03-16 09:38:11 +01:00
Jan Holesovsky
5df6cd16a2 android: Make the Bold button actually work - switches to typing in bold.
Change-Id: I48da0f3cc918bda1cdb396b4ea72a82eddafb9a8
2015-03-16 09:38:10 +01:00
Tomaž Vajngerl
bd3771e105 android: add to JNI - setGraphicSelection, resetSelection
Change-Id: Ib81763148b077423d3903802b13a11b15ba3b0c1
2015-03-16 09:38:07 +01:00
Tomaž Vajngerl
bcc3163a4a android: add bold selection to toolbar (experimental)
Change-Id: Ie9fa613659db9dcc174851d7c02587bef6b67cef
2015-03-16 09:38:07 +01:00
Tomaž Vajngerl
598ba92da8 android: add toolbar controller
Change-Id: I9ecaf0f0e7e39e2a28e1545bc0310360d5cebfe5
2015-03-16 09:38:06 +01:00
Tomaž Vajngerl
2c0498dcce android: add some material design icons
Change-Id: Ieb6acdb75e0ae0367dd39b2773e69d6f8415f0fc
2015-03-16 09:38:06 +01:00
Tomaž Vajngerl
c08069f2d7 android: clicking on toolbar icon exits edit mode
Change-Id: Idc8c94629bd7a23be1e3a13e88debc478d6ab880
2015-03-16 09:38:02 +01:00
Tomaž Vajngerl
1771f21e2b android: use LOK_SETTEXTSELECTION_RESET as it is meant to be used
Change-Id: I09f175a09c8b4c9468e2221274b17216b23b76ff
2015-03-16 09:38:02 +01:00
Tomaž Vajngerl
b6df97c32c android: simplify state tracking, make graphic selection work
Simplify by removing all but one transition state (which disables
handles depending on previous state).

Additionally show/hide/change the graphic selection depending on
the messages we get from LO.

Change-Id: I95d22a58e0a7f3cb034b18034cb816816a48f355
2015-03-16 09:38:02 +01:00
Tomaž Vajngerl
003a62fb64 android: add graphic selection to TextCursorLayer{View}
Change-Id: I13d26dd8b38d0b6817f3d0dbcb8a063fef559c2a
2015-03-16 09:38:02 +01:00
Tomaž Vajngerl
a14d29259e android: wrong parent in theme definition
Change-Id: I0efaa8c131959dbaefba24d48041744391c55137
2015-03-16 09:38:01 +01:00
Tomaž Vajngerl
4cf34bf205 android: actually use the new toolbar in the application
Change-Id: I221ece32967289104612309faee5d22209a64b25
2015-03-16 09:37:59 +01:00
Tomaž Vajngerl
bdd8a68c7b android: make & build appcompat-v7 library, up target to v21
Previously we included the android support library v4 for some
GUI elements like GridView. This commit in addition adds the v7
appcompat library which is needed for the new Lollipop style
Toolbar and many other new GUI elements.

The appcompat v7 library is not distributed as only a jar file
but needs to be build (as it includes additional resources) and
included as a library project. So to do this the content is copied
from SDK and build with the build system. The files also include
the v4 so it doesn't need to be copied from SDK anymore.

The target had to be raised to v21 (Lollipop), however the minimum
SDK version remains unchanged.

Change-Id: I4f1a6ce69e7f6c3f9df784a6835f376a01d4dfdb
2015-03-16 09:37:58 +01:00
Tomaž Vajngerl
80c90f518c android: add graphic selection
Change-Id: I9bf9193a2130316caca83030c4fb5dd588c5c0e0
2015-03-16 09:37:58 +01:00
Tomaž Vajngerl
8c5a9009c8 android: don't hide CursorView by default
Change-Id: Ic662d71face370457c122946c8dbcb56d6f2bfe7
2015-03-09 10:16:21 +01:00