Skip to content

Instantly share code, notes, and snippets.

@sebk
Created September 13, 2018 17:32
Show Gist options
  • Save sebk/3b26540bdde4532651b2f88c440e0da5 to your computer and use it in GitHub Desktop.
Save sebk/3b26540bdde4532651b2f88c440e0da5 to your computer and use it in GitHub Desktop.
ActionBar Back Button
public class AktuellesDetail extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_aktuelles_detail);
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
<activity
android:name=".content.Detail"
android:label="@string/title_activity_detail" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment