FocusTools Extension [Free & Open Source]

1.Introduction

FocusTools is an Extension to request Focus for a Component, request Focus DOWN or UP
for a Vertical Scroll Arrangement and request Focus LEFT or RIGHT for Horizontal Scroll Arrangement.

This extension won't be updated anymore, that's why I've provided the source code.

Latest Version: 1
Released: 2020-11-23T23:00:00Z
Last Updated: 2020-11-23T23:00:00Z

⮞ Important Note

The (Request Focus) Block does not work with all components, it only works with some.
The components that I tested and worked on were:
Button, TextBox, Date Picker, Time Picker, List Picker, and all types of TextBox or Button.

Note : All Button types only work in classic mode

2.Blocks

blocks

3.Documentation

  • Got Focus
    Event Occurs when a component Got Focus
    blocks (3)
  • Lost Focus
    Event Occurs when a component Lost Focus
    blocks (4)
  • Request Focus
    to request focus for component
    blocks (2)
  • Request Focus H Scroll
    to request focus for Horizontal Scroll Arrangement, focus using Constant Value.
    blocks
    focus ~ number
See Constant Value For HScroll Here
Focus Constant Value
FOCUS_LEFT 17
FOCUS_RIGHT 66
For more information about Constant Value, you can see here :
View  |  Android Developers
  • Request Focus V Scroll
    to request focus for Vertical Scroll Arrangement, focus using Constant Value.
    blocks (2)
    focus ~ number
See Constant Value For VScroll Here
Focus Constant Value
FOCUS_DOWN 130
FOCUS_UP 33
For more information about Constant Value, you can see here :
View  |  Android Developers

4.Downloads

com.SalmanDev.FocusTools.aix (7.4 KB)
Source Code : FocusTools.txt (3.3 KB)

5.Credits

Thank you very much to My Best Teacher @MohamedTamer :kissing_heart:
Big Thanks to @WatermelonIce for helping :kissing_heart:
Thanks to all of you who helped me :star_struck:
And Thanks a lot to MIT :heart:

13 Likes

Useful extension!!!! :partying_face:

1 Like

Thank you very much for your support @Alaqmar_Bohori :heart_eyes:

1 Like

Great extension @Salman_Dev :+1: :grinning:

1 Like

Thank you very much for the guide @MohamedTamer :star_struck: :kissing_heart: :+1:

1 Like

Maybe you can explain the use of this extension? You can give out a test aia too.

2 Likes

okay I will make aia for you, and you will see what are the advantages of my extension.
Thank you for your suggestion @WaterMelonIceGaming :kissing_heart: :+1:

1 Like

Okay @WatermelonIce, now I finished the aia project. :grin: :+1:
and you can download it below

Aia Project :

FocusTools.aia (11.2 KB)

Why does the aia sample program ask for access to my contacts?

Actually I am also confused why that asking permission, because I actually didn't add any permissions to my extension. :face_with_monocle:

Great extension :star_struck:

1 Like

Looks useful Salman - but Users having to remember the correct integer for focus direction - can that be avoided? For example, default to left focus and use true-false constant block for right focus?

2 Likes

Thank you @newbiedeveloper :kissing_heart:

It can be avoided, but in that case I am worried other Constant values ​​cannot be used.
because actually I haven't tested other constant values.
Thank you @ChrisWard I hope you can understand.

Well test them! :dart:

1 Like

I will find some free time, and thank you for suggestion @ChrisWard

1 Like

See also why it asks for permission to access contacts. Probably the Play Store will not be happy about this if someone adds this extension to the application: D

Please read that @Patryk_F :flushed:
I think it's not from my extension but it might be from mit AI2

I have read. Only this information does not help. I download your aia, add nothing there, compile and the application asks me for permission to access contacts. It's kind of suspicious.