Created
September 13, 2018 17:32
-
-
Save sebk/3b26540bdde4532651b2f88c440e0da5 to your computer and use it in GitHub Desktop.
ActionBar Back Button
This file contains 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
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); | |
} | |
} |
This file contains 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
<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