android toolbar with menus
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_menu, menu);
return true;
}
android toolbar with menus
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_menu, menu);
return true;
}
menu android
// main xml
<androidx.appcompat.widget.Toolbar
android:id="@+id/activity_main_toolbar"
android:minHeight="?attr/actionBarSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:titleTextColor="@android:color/white"
android:background="?attr/colorPrimary"/>
// menu menu/..menu.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_activity_main_search"
android:icon="@drawable/ic_search_white_24dp"
app:showAsAction="ifRoom"
android:title="Rechercher">
</item>
<item
android:id="@+id/menu_activity_main_params"
android:icon="@drawable/ic_more_vert_white_24dp"
app:showAsAction="ifRoom"
android:title="Paramètres">
</item>
</menu>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us