R raytronixsystems Active Member Licensed User Longtime User Feb 20, 2012 #1 I know that Code Modules cannot capture click events in the Activity directly but is it possible to pass a click event from a Button, ImageView or otherwise to a Sub to code modules? I am trying to shrink the size of my main module down to a more manageable size and want to create modules that I can reuse in other projects. Any help or guidance would be greatly appreciated. thx, Ray
I know that Code Modules cannot capture click events in the Activity directly but is it possible to pass a click event from a Button, ImageView or otherwise to a Sub to code modules? I am trying to shrink the size of my main module down to a more manageable size and want to create modules that I can reuse in other projects. Any help or guidance would be greatly appreciated. thx, Ray
P PharCyDeD Active Member Licensed User Longtime User Feb 20, 2012 #2 Unfortunately, I do not have a solution to this but I am also interested. Re-usable modules are very very useful for obvious reasons. I am obsessed with clutter-free code and would love to push some things to separate modules if possible. Upvote 0
Unfortunately, I do not have a solution to this but I am also interested. Re-usable modules are very very useful for obvious reasons. I am obsessed with clutter-free code and would love to push some things to separate modules if possible.
Erel B4X founder Staff member Licensed User Longtime User Feb 20, 2012 #3 You can delegate any event. See this example: Android SlidingPanels - Simple way to create sliding layouts Upvote 0
You can delegate any event. See this example: Android SlidingPanels - Simple way to create sliding layouts