[F/OS] PointerTools - for Pointer Accessibility

🖱️ PointerTools

to work with Pointer accessibility feature added in Android SDK version 24

You can use this extension to add support for pointer ( Mouse and Androidx86/Emulation ). I personally needed this extension to enable visual feedback on hovering views/components while working on Androidx86.

đź“˝ Demo Video to see how it works


🧩 Blocks

âť” Example Usage

↖️ PointerIcon

component_method

view ~ Any view component
pointer ~ Pointer ( 3 available methods returns pointer )

component_method(1)

Returns Pointer
type ~ Pointer Icon Type ( 23 available property blocks )

component_method(2)

Returns Pointer
image ~ bitmap image
OffsetX and Y ~ Int ( number )

component_method(3)

Returns Pointer
view ~ Get pointer icon of the view if already set.

component_method(4)

view ~ Reset to default pointer icon.


🔤 Tooltip

component_method(5)

view ~ View to set tooltip text.
text ~ String to set as tooltip text

component_method(6)

Returns text
view ~ View to get tooltip text from.


↔️ Pointer Types


component_set_get

component_set_get(1)

component_set_get(2)

+ 19 more available pointer types

component_set_get(3)

component_set_get(4)

component_set_get(5)

component_set_get(6)

component_set_get(7)

component_set_get(8)

component_set_get(9)

component_set_get(10)

component_set_get(11)

component_set_get(12)

component_set_get(13)

component_set_get(14)

component_set_get(15)

component_set_get(16)

component_set_get(17)

component_set_get(18)

component_set_get(19)

component_set_get(20)

component_set_get(21)


đź“‚ Downloads

Extension v1.0 : com.jaxparrow.pointertools.aix (7.6 KB)

If you want a version which just has set and get tooltip, check this reply

Demo App :
PointerTest.apk (5.2 MB)

Demo Project :
PointerTest.aia (63.4 KB)


ℹ️ Open-source and credits

This extension is open-sourced and you’re free to contribute and make this extension even more better.

Thanks to Shreyash for his super Rush.

Extension documentation inspired from Yusuf Cihan.

20 Likes

Wow. Fantastic… :+1::+1::+1::+1:

2 Likes

Nice extension @Jaxparrow :+1:

1 Like

Awesome work :heart:

1 Like

There i’s no effect show

2 Likes

I am almost sure that it only works if you have a Mouse connected to your device, for example via OTG or Bluetooth :thinking:

2 Likes

This effects only apply to the pointer ( cursor ). You can see the pointer icon change if you test with a mouse plugged/connected or in androidx86.

1 Like

will this enable the mouse on android tv ? more specific in WebView

1 Like

@Jaxparrow Can you please make one more extension with that we can just make tooltips as you shown in demo I have buttons and too many other things I don’t need pointer tools I just need that long click tooltip.

1 Like

This doesn’t enable the mouse in any ways. It just makes it more responsive by visual feedbacks. Like, showing the spinner ( waiting cursor) when there’s task. Showing draggable cursor for views that can be dragged ( to show that the view could be moved ). If the cursor ( pointer ) works, the extension works.

If you are talking about changing cursors in webview, you should try checking this css property.

I suppose you can use the extension and just use the tooltip block. I don’t think 7kb is that much. If you want a specific one, I’d build one and update the post asap ^-^

1 Like

If you can make a specific one then it will really mean a lot to me else also no issues.

1 Like

This one is 2x ( 3kb ) lighter than the original. I just added these two methods and built this one.

Extension ( with just Get and Set tooltip methods ) : com.jaxparrow.tooltips.aix (3.3 KB)

I’ll update the first post aswell.

1 Like

Thank you so much it means a lot to me.
I need this because there isn’t any tooltip extension and this is useful to show long clicks tooltips on custom title bar in built in title bar it shows by default but in custom title bar this is helpful :slight_smile:

1 Like

Always, you’re welcome. I’m glad it helped.

3 Likes

Nice extension, but you must note that in Android 6 and below, it will not work and you will get the following error message:

1 Like

It’s mentioned in the post that the api is added in 24

1 Like

Oh I did not notice it :smile:
Thanks anyway

1 Like

How to emulate touchpad show with cursor without connect external usb/Bluetooth mouse