declex icon indicating copy to clipboard operation
declex copied to clipboard

Actions for Used Views

Open smaugho opened this issue 7 years ago • 0 comments

Even offering support for Actions in #111, the Listener would continue making the code "ugly".

It would be good to implement an action-like system for Views, which automatically will handle the listeners for all kind of View used in the Layouts of the app. Let's say you have some SeekBar, you could do as:

$SeekBar(seekBar);
$SeekBar(R.id.mySeekBar);
$SeekBar("mySeekBar");

if ($SeekBar.onStopTrackingTouch) {
    //Do something here
}

This would permit to use all the action features with unknown actions, included Extended Actions as #86, params injection, automatically supporting actions there, uniformity in whole the framework (no listeners).

smaugho avatar Mar 24 '17 09:03 smaugho