DSpotDevelopers / declex

DecleX - Declarative Framework for Android, easier and faster coding.
Other
168 stars 25 forks source link

(Support MenuItem) An improvement I think should have Declex #24

Open caleroalbelo90 opened 7 years ago

caleroalbelo90 commented 7 years ago

Could be a good idea to add support to MenuItem in the params of method like:

@AfterViews
    void init(MenuItem next){
        next.setIcon(getActivity().getResources().getDrawable(R.drawable.icon));
    }
smaugho commented 7 years ago

Ok, it should be seen the MenuItem is inflated after the @AfterViews methods, so probalby the @AfterViews cannot have a reference to it.. but other methods can (@Actions and Events like @Click, @LongClick, ...)