Does this action bar support the "up a level" navigation feature?
Implementing Ancestral Navigation | Android Developers
Navigation with Back and Up | Android Developers
There is a "ShowHomeAsUp" option. But it looks a bit different than in the standard Android 3+ Actionbar.
'Part from Sub Global:
Dim AB As ClsActionBar
Dim PopupMenu1 As AHPopupMenu
Dim PopupPatrolType As AHQuickAction3D
'Part from Activity_create:
PopupMenu1.Initialize("PopupMenu1")
AddAHActionMenuItem(PopupMenu1, 1, "STOP", "Icon Stop.png", False) 'THIS IS WHERE IT STOPS WITH ERROR
AddAHActionMenuItem(PopupMenu1, 2, "Settings", "Icon Settings.png", False)
AddAHActionMenuItem(PopupMenu1, 3, "About App & OS MAPS", "Icon About.png", False)
'Custom Sub to add items
Sub AddAHActionMenuItem(MenuObject As View, ItemIndex As Int, Text As String, IconFileName As String, Sticky As Boolean)
Dim ai As AHActionItem
Dim Icon As BitmapDrawable
Icon.Initialize(LoadBitmap(File.DirAssets, IconFileName))
ai.Initialize(ItemIndex, Text, Icon)
If Sticky Then ai.Sticky = True
'Add the item to menu
Dim obj As AHQuickAction
obj=MenuObject
obj.AddActionItem(ai)
End Sub
B4A line: 127
AddAHActionMenuItem(PopupMenu1, 1, \
javac 1.7.0_10
src\com\omgpolice\main.java:386: error: inconvertible types
_addahactionmenuitem((anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(mostCurrent._popupmenu1)),(int) (1),"Project1","Icon Stop.png",anywheresoftware.b4a.keywords.Common.False);
^
required: View
found: ICSMenu
res\values\ahab_colors.xml:17: error: Resource at actionbar_divider appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:18: error: Resource at actionbar_title appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:19: error: Resource at actionbar_subtitle appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:20: error: Resource at actionbar_background_start appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:21: error: Resource at actionbar_background_end appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:22: error: Resource at actionbar_background_dropdown_start appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:23: error: Resource at actionbar_background_dropdown_end appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:24: error: Resource at actionbar_background_item_pressed_start appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:25: error: Resource at actionbar_background_item_pressed_end appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_colors.xml:26: error: Resource at actionbar_tab_bar_background appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_dimens.xml:17: error: Resource at actionbar_height appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_dimens.xml:18: error: Resource at actionbar_item_height appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_dimens.xml:19: error: Resource at actionbar_item_width appears in overlay but not in the base package; use <add-resource> to add.
res\values\ahab_ids.xml:4: error: Resource at actionbar_item_home appears in overlay but not in the base package; use <add-resource> to add.
res\layout\ahab_actionbar.xml:16: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/actionbar_height').
res\layout\ahab_actionbar.xml:49: error: Error: No resource found that matches the given name (at 'background' with value '@color/actionbar_divider').
res\layout\ahab_actionbar.xml:72: error: Error: No resource found that matches the given name (at 'background' with value '@color/actionbar_divider').
res\layout\ahab_actionbar.xml:102: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/actionbar_title').
res\layout\ahab_actionbar.xml:121: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/actionbar_subtitle').
res\layout\ahab_actionbar.xml:172: error: Error: No resource found that matches the given name (at 'background' with value '@color/actionbar_tab_bar_background').
res\layout\ahab_item.xml:16: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/actionbar_item_width').
res\layout\ahab_item_home.xml:16: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/actionbar_item_width').
res\layout\ahab_list_dropdown_item.xml:3: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/actionbar_height').
res\layout\ahab_list_dropdown_item.xml:3: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/actionbar_title').
res\layout\ahab_tab.xml:35: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/actionbar_title').
res\layout\ahab_title.xml:3: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/actionbar_height').
res\layout\ahab_title.xml:3: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/actionbar_title').
res\drawable\ahab_background.xml:18: error: Error: No resource found that matches the given name (at 'startColor' with value '@color/actionbar_background_start').
res\drawable\ahab_background.xml:18: error: Error: No resource found that matches the given name (at 'endColor' with value '@color/actionbar_background_end').
res\drawable\ahab_background_dropdown.xml:18: error: Error: No resource found that matches the given name (at 'startColor' with value '@color/actionbar_background_dropdown_start').
res\drawable\ahab_background_dropdown.xml:18: error: Error: No resource found that matches the given name (at 'endColor' with value '@color/actionbar_background_dropdown_end').
res\drawable\ahab_btn_normal.xml:18: error: Error: No resource found that matches the given name (at 'startColor' with value '@color/actionbar_background_start').
res\drawable\ahab_btn_normal.xml:18: error: Error: No resource found that matches the given name (at 'endColor' with value '@color/actionbar_background_end').
res\drawable\ahab_btn_pressed.xml:18: error: Error: No resource found that matches the given name (at 'startColor' with value '@color/actionbar_background_item_pressed_start').
res\drawable\ahab_btn_pressed.xml:18: error: Error: No resource found that matches the given name (at 'endColor' with value '@color/actionbar_background_item_pressed_end').
Edit: Wie ich gerade sehe bist du aus Deutschland
Also ich hab alles gemacht, wie du gesagt hast aber bei "Generating R File" kommt immer das da oben. Ich konnte allerdings schon einmal deine Actionbar erfolgreich nutzen. Jetzt gehts egal, was ich mache in meinem neuen Projekt nicht mehr!?
Grüße
P.S. Gute Arbeit!
Edit: works now. It was a b4a v. 3.2 bug. Erel- please solve this
Hi,
Does the AhActionbar Lib can be implemented the drop-down menu , such as like this , TKS
View attachment 25847
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?