It should be:I got it working for an hour without this warning:
java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
But now I changed a few theme colors and it stops working with the Material appcompat toolbar. I have added
<item name="android:windowActionBar">false</item>
to my theme file but no luck anymore. Suggestions?
<item name="windowActionBar">false</item>
Here: here
ActionBar.Menu.Add2(1,1,"Save",IconicDrawable.Drawable)
I'm assuming you are testing on lollipop otherwise it should display on top of the actionbar?HI All,
1. Is there an option to add the navigation drawer to open only under the actionbar. currently it opens using full screen.
MDB.withTranslucentStatusBar(false)
Are you setting the color of the drawable? I think its black by default. I havent actually tried it with an actionbar. If you have a sample project I could try it.2. I tried to add the MSIconicDrawable to the appcompact but it is not visible. I used the below code.
So is it possible to add the iconic drawable?B4X:ActionBar.Menu.Add2(1,1,"Save",IconicDrawable.Drawable)
Edit : The icon is added but somehow it is not visible
You are just too kind@thedesolatesoul and other B4A developers work really hard on wrapping libraries. If there's a donate button then if one can afford to donate, I think one should donate. The amount of development time libraries save us is just incredible, so I for one donate.
You are right, it only works on Lollipop and that too when the icon size is set.Hi @thedesolatesoul,
I have attached the example app compact project. The iconiDrawable is not visible.
Regards
SK
Dude, after 2 hours of debug I realized that you didnt even include the fonts in the project!Hi @thedesolatesoul,
I have attached the example app compact project. The iconiDrawable is not visible.
Regards
SK
No need to apologize, I will make the docs clearer.Hi @thedesolatesoul,
I apologize. I didnt realize.Thank you so much. I will keep a checklist.
Regards,
SK
Updated to use withDisplayBelowToolbar method, so it only shows under the actionbar.1. Is there an option to add the navigation drawer to open only under the actionbar. currently it opens using full screen.
If there is, let me know. I dont know any.Is there anyway to use the drawer with multiple activities?
I wouldnt do that. That would leak an activity context. The only way this would work if the view and the drawer structure are decoupled and the structure is a process global element.Hmmmm. off the too off my head maybe there is a way to create a class and wrap/control one "global" drawer...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?