Created
June 25, 2017 06:41
-
-
Save bangarharshit/06e249fcea531e35b4e3630054c4e811 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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