When you click on the item in the menu, a new activity opens, but the top panel disappears.
Menu add code and click processing.
Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main,menu); return true; } public void onAboutDev(MenuItem item) { Intent intent = new Intent(MainActivity.this, AboutDev.class); startActivity(intent); } Layout layout code with which I have a problem:
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/about" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> </android.support.constraint.ConstraintLayout> Here is such a white screen with text, how to fix it?
Toolbaras a menu, then you need to specify it explicitly in the markup, it will not appear. Look at the markup (and code) of the first activation and see how and why the menu appears there, then do the same for your other activites. - pavlofff