Galaxy 1.0.1 - A click toggler šŸ„³

:milky_way: Galaxy

Galaxy provides you with a total of three events and procedures that can toggle if a component is clickable or long clickable. The only reason I came up with this small extension is because long clicking on components you never want to long click on causes your device to vibrate if enabled.

* Excluded from my open-source policy.


ComponentClick

Delegated when a component that was registered as clickable, was clicked.


ComponentGenericClick

Delegated when a component that was registered as being ā€œfully clickable,ā€ was clicked.


ComponentLongClick

Delegated when a component that was registered as long clickable, was long clicked.


SetClickListener

Set whether the given component is clickable.


SetGenericClickListener

Set whether the given component is ā€œfully clickable.ā€


SetLongClickListener

Set whether the given component is long clickable.




If you have version 0.1.1 or are starting with Galaxy, it is recommended to download Galaxy 1.0.1! The minimum API is 21.

24 Likes

Nice extension :star_struck: :star_struck:

3 Likes

wow @hammerhai you have launched 2 extension at one time
BTW nyc extension

3 Likes

Thatā€™s @hammerhai power :muscle:

1 Like

Version 0.1.1

  • Bug fixes

Download

1 Like

Dear, can you add a block for double click event?

1 Like

No, because that is your job.

1 Like

nice extension but the link is broken can you please re upload it

It is not brokenā€¦

oh sorry ,my bad :grin:

1 Like

Can you add full Clickable and on touchDown and touchUp
Great extension thanks

1 Like

Full clickable is actually very easy to add and I can experiment with it, however donā€™t expect it to be stable at first.

1 Like

something look like this??

No, this is completely different. Your post is getting reported for promoting another extension in someone elseā€™s topic about their own extension.

You are mistake. User has the rights to suggest or ask if they found similar. If not no issue. Let the painter paint. You know your algorithm. As a user when we see outside the both extension it seems to be similar. I am not good in Java or extension development.

Mods will decide whether i am promoting the extension or asking

It doesnā€™t matter if youā€™re advanced in either of theseā€¦ The blocks look completely different.

It doesnā€™t matter if youā€™re askingā€¦ It you are promoting, people are going to click on your link. There was no need to ask, itā€™s nowhere close to the extension you promoted.

Still you mis read my post.No issue.
Your extension is free, the extension i asked about (found it while searching for another extension) is paid one. If so users will prefer yours or paid one?. If you ask me i will say free only.

But then if you knew developers would choose the ā€œfreeā€ over ā€œpaid,ā€ then whyā€™d you even ā€œaskā€ about it. Thereā€™s nothing similar, itā€™s clear in their screenshots of the blocks.

:package: Galaxy 1.0.0

com.github.flailingoctopus.galaxy.aix

:new: ADDED

  • ComponentGenericClick

  • SetGenericClickListener ā€“ This is similar to the ā€œFull Clickableā€ property for card views.

    :information_source: Setting enabled to true will result in only the arrangement being clickable, not itā€™s children views. The ā€œClickableā€ property for the arrangement doesnā€™t have to be true.

    :loudspeaker: Suggested by @Bharat_Android_App_Develo!

:pencil2: CHANGED

  • Now ā€œClickUtilitiesā€ is named ā€œGalaxyā€


    CAPTION: New icon and new name!

  • OnComponentClick is now ComponentClick

  • OnComponentLongClick is now ComponentLongClick

  • The clickable and longClickable parameters are now named enabled

  • The package name is now com.github.flailingoctopus.galaxy

  • ToggleClickable is now SetClickListener

  • ToggleLongClickable is now SetLongClickListener

2 Likes

Very need func/) :+1:
CardView no need, but already it doesnā€™t work )

has wrong type (com.google.appinventor.components.runtime.MakeroidCardView) (expected: com.google.appinventor.components.runtime.HVArrangement)

1 Like