One simple way to do this is to provide an Up button on the app bar for all activities except the main one. When the user selects the Up button, the app navigates to the parent activity. This lesson shows you how to add an Up button to an activity by decl
@Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml.
I added the up button in the action bar of my android activity in this way: Activity: getSupportActionBar().setDisplayHomeAsUpEnabled(true); Manifest: android:parentActivityName=".MenuActivity"> It work fine but now i want to add a transition
Post a Comment:
Showing 0 Comments: