P
P
pitimirov_a2015-11-30 15:10:35
Android
pitimirov_a, 2015-11-30 15:10:35

How to change the activity inside the Frame when the button is clicked?

public void openFilms(View view){
        /* Заменяет основной активити
        Intent intent = new Intent(this, FilmsActivity.class);
        startActivity(intent);
        */

    }

For example, take FrameLayout fl = (...) ... (R.id. ...);
Please show me how to load fl FilmsActivity inside if it is not already included in it... Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Perelygin, 2015-11-30
@orcDamnar

Fragments to help you. developer.android.com/intl/ru/guide/components/fra...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question