B bluedude Well-Known Member Licensed User Longtime User Jan 19, 2012 #1 Hi, I see that Android 3.0 already provided an action bar. In my opinion an action bar is something every developer wants (shortcuts to certain features) and currently it isn't possible with B4A. Creating it manually with different images is a pain (done some testing). I know the menu items are working with the action bar but real action items are not possible yet. See this: Action Bar | Android Developers Cheers and thanks in advance.
Hi, I see that Android 3.0 already provided an action bar. In my opinion an action bar is something every developer wants (shortcuts to certain features) and currently it isn't possible with B4A. Creating it manually with different images is a pain (done some testing). I know the menu items are working with the action bar but real action items are not possible yet. See this: Action Bar | Android Developers Cheers and thanks in advance.
B bluedude Well-Known Member Licensed User Longtime User Jan 19, 2012 #2 Implementation suggestion: Add flag to the normal menu item so that it shows up with icon in the action bar.
Implementation suggestion: Add flag to the normal menu item so that it shows up with icon in the action bar.
corwin42 Expert Licensed User Longtime User Jan 19, 2012 #3 I just started working on a new library for action bars. I would love to have support for ActionBarSherlock but this is currently not possible (Activities have to extend FragmentActivity and some other problems). So I decided to convert this Action Bar implementation to a B4A Library. The pain with all these Android Library projects is that they make use of the Android resource system with all the XML files. This can't be packed into a .jar file and has to be converted into program code and this is an awful work. The advantage of ActionBarSherlock would be that it uses the native ActionBar implementation on Android >= 3.0. But I think the solution from Johan Nilson is better than nothing. Perhaps Erel could build Android Library support into B4A in the future so that we can use them directly from a wrapper class. But this will make the handling of libraries much more complex.
I just started working on a new library for action bars. I would love to have support for ActionBarSherlock but this is currently not possible (Activities have to extend FragmentActivity and some other problems). So I decided to convert this Action Bar implementation to a B4A Library. The pain with all these Android Library projects is that they make use of the Android resource system with all the XML files. This can't be packed into a .jar file and has to be converted into program code and this is an awful work. The advantage of ActionBarSherlock would be that it uses the native ActionBar implementation on Android >= 3.0. But I think the solution from Johan Nilson is better than nothing. Perhaps Erel could build Android Library support into B4A in the future so that we can use them directly from a wrapper class. But this will make the handling of libraries much more complex.