pyricau / fragnums

An enum based library to replace fragments.
Apache License 2.0
577 stars 55 forks source link

more update #14

Closed microcian closed 7 years ago

microcian commented 7 years ago

Awesome library and i want to know more about if i have some adapter and recycler view or also some click listener of adapter so everything related to that view should be in the following code ?? onBind ?

as you write some piece of code T_SHIRT(R.layout.tshirt, R.string.tshirt_title) { @Override protected void onBind() { findViewById(R.id.button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(ACTION_VIEW, Uri.parse("https://teespring.com/enumsmatter")); view.getContext().startActivity(intent); } }); } };

pyricau commented 7 years ago

nope!

microcian commented 7 years ago

then should be the mechanism for that

pyricau commented 7 years ago

https://github.com/pyricau/fragnums#is-this-serious