//------------------------------------Code Detail
and Working---------------------------------------------------------
1 Step three dot create
//============================java Code Start ==============================
//menu create folder
//Menu create file follow step
//write name menu create
//item add code
<item
android:id="@+id/action_fr"
android:title="Action"
android:icon="@drawable/home"/>
<item
android:id="@+id/action_histry"
android:title="Histry"/>
//====================================End==================================
//--------------------------------------------Code Detail and Working---------------------------------------------------------
2 Step XML call three Dot Navigation create theme not icon navigation change Theme
//============================java Code Start =========================================
=========================================End==========================================
//--------------------------------------------Code Detail and Working---------------------------------------------------------
3 Step XML call three Dot Navigation create theme not icon navigation
//============================java Code Start =========================================
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/Appbar_layout"
>
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tool_bar"
app:menu="@menu/drawer_manu"
/>
</com.google.android.material.appbar.AppBarLayout>
=========================================End==========================================
3 Step java call three Dot Navigation create theme not icon navigation
//============================java Code Start =========================================
// not show three dot icon then applay
//setSupportActionBar(Binding.toolBar);
Binding.toolBar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
if(item.getItemId() == R.id.action_fr){
Toast.makeText(getApplicationContext(), "clicked add", Toast.LENGTH_SHORT).show();
}
return false;
}
});
=====================end========================================