[Solved] How to add backbutton functionality to app
What you looking is call BottomNavigationView. You should place the id in onNavigationItemSelected. MainActivty public class MainActivity extends AppCompatActivity { private TextView mTextMessage; private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener = new BottomNavigationView.OnNavigationItemSelectedListener() { @Override public boolean onNavigationItemSelected(@NonNull MenuItem item) { switch (item.getItemId()) { case R.id.navigation_home: mTextMessage.setText(R.string.title_home); return true; case R.id.back: finish(); return true; } return false; } }; … Read more