I have this item in my top_navigation_menu layout I would like to enable it in my OnCreate method programmatically:
<item
android:id="@+id/action_button"
android:enabled="false"
android:visible="false"
android:clickable = "false" />
Exemple : When User Open New Activity Enable this Item.
Edit : this is a follow up from my previous question so I'm trying another approach.
Edit : after some research I found
Button btn = (Button) findViewById(R.id.action_button);
btn.setEnabled(true);
btn.setClickable(true);
Not sure which one I should use