Skip to content

Instantly share code, notes, and snippets.

@bangarharshit
Created June 25, 2017 06:41
Show Gist options
  • Save bangarharshit/06e249fcea531e35b4e3630054c4e811 to your computer and use it in GitHub Desktop.
Save bangarharshit/06e249fcea531e35b4e3630054c4e811 to your computer and use it in GitHub Desktop.
import com.harshitbangar.mvpconductor.BaseView;
class HomeView extends BaseView<HomeController> {
public HomeView(Context context) {
super(context);
inflate(context, R.layout.home, this);
Toolbar toolbar = findView(R.id.toolbar);
toolbar.setNavigationOnClickListener(new OnClickListener() {
@Override public void onClick(View v) {
getController().backPress();
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment