declex
declex copied to clipboard
Actions for Used Views
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).