I am creating a custom menu with icons, and I want to know if it is possible to see how the menu on the toolbar looks without running the program on an emulator or on an Android device.
I am wondering if this can be done in a way that you can temporarily view everything by including the tools
namespace:
xmlns:tools="http://schemas.android.com/tools"
in your layout file. Then you just put something like this:
tools:text="text here that is previewed only" tools:layout="@layout/some_layout"
So, can I do this using the menu resource file? Because when I make a menu file, I want it to display the formatting of my theme. I tried to combine with various tools
attributes and tried to install it in my menu file, but nothing worked. Here's what it looks like now, because I don’t see the layout with the settings for my theme:

If this is not possible, can I see how the menu with the settings for my theme looks in another layout file?
source share