Press on the image to return to the main documentation page.
Written by Markus Stipp
This library provides an ActionBar.
The ActionBar was introduced in Android 3.0. This is a complete custom implementation of an ActionBar so it is not really compatible with the Android 3.0+ ActionBar.
This library is somewhat different to other libraries because it makes use of standard Android resource files. Resource files cannot be published inside a .jar file and so you have to copy them to your Basic4Android project directory.
Copy the whole "res" directory structure to the "Objects" directory of your B4A project and VERY IMPORTANT: make them READ ONLY! Otherwise B4A will delete them when compiling. After you make any change to the Objecs/res directory use "Clean project" menu item in B4A to force the compiler to recreate the R.java file.
If you forget to make the resource files read only then you will most likely get a ResourceNotFound exception when you try to use the ActiionBar.
The object is highly based on an open source project by Johan Nilsson: Android-ActionBar
Gets the current count of actions added to the action bar
Set or get the action item width. The height is always the height of the action bar. The default width is 42dip. You should set this value to the same value as your action bar height to get sqare action items.