I hid the action bar in my app and added an "ImageView" that represents the back button, my question is how to hard coding the back button in android studio?
btnBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});