O
O
Oleg Gamega2015-06-12 09:43:34
Android
Oleg Gamega, 2015-06-12 09:43:34

How to set bacbutton in AppCompatActivity?

Hello.
How to set bacbutton in AppCompatActivity ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2015-06-19
@System0

Do you want to override the Back Button action? then

@Override
public void onBackPressed() {
        super.onBackPressed();
}

R
Rustem Saitkulov, 2015-06-23
@atetc

getSupportActionBar().setDisplayHomeAsUpEnabled(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question