FocusTools : An Extension to Request Focus Component [FREE]

1.Introduction

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.

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

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 :
https://developer.android.com/reference/android/view/View#FOCUS_LEFT

  • 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 :
https://developer.android.com/reference/android/view/View#FOCUS_DOWN

4.Download

com.SalmanDev.FocusTools.aix (7.4 KB)

5.Credits

Thank you very much to My Best Teacher @mohamed_tamer for teaching me so many things. :kissing_heart:
Thank you @WaterMelonIceGaming for helping me. :kissing_heart:

And Thanks a lot to MIT :heart:

7 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 @mohamed_tamer :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 @WaterMelonIceGaming, 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?

1 Like

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.