Android Question Material design without Appcompat?

wimpie3

Well-Known Member
Licensed User
Longtime User
I'm developing for Android > 5 so I don't need to use the appcompat library. Unfortunately, all the examples on this forum to use a toolbar with a menu and a button use ACTOOLBAR, which needs appcompat. Is there an example of a toolbar which follows the material design and does not need the appcompat library?
 

corwin42

Expert
Licensed User
Longtime User
I have not tested it but shouldn't the StdActionbar library still work?
https://www.b4x.com/android/forum/threads/stdactionbar-another-actionbar-library.36786/#content

For a "Button" you should use Activity.AddMenuItem3() and set the AddToActionBar parameter to true.

There is even my StdActionBarHelper library which will add most features of ACToolbar like ActionMode etc. if you need it.
https://www.b4x.com/android/forum/t...ies-for-the-standard-actionbar.36898/#content

Edit: You can just simply use Activity.AddMenuItem3() and you should get the standard ActionBar.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…