Android Example [B4X] AS_TabMenuAdvanced + ASPopupMenuAdvanced

This is a example how to use the AS_TabMenuAdvanced together with the ASPopupMenuAdvanced.

For this example you need the 2 libs.
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenuAdvanced Example.zip
    455.1 KB · Views: 546
Last edited:

Rubsanpe

Active Member
Licensed User
Hi. A designer file is mising

B4X:
Registro conectado a: emulator-5554
--------- beginning of main
Copying updated assets files (7)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Error occurred on line: 75 (B4XMainPage)
java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/frm_item1.bal: open failed: ENOENT (No such file or directory)
    at libcore.io.IoBridge.open(IoBridge.java:575)
    at java.io.FileInputStream.<init>(FileInputStream.java:160)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:205)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:312)
    at b4a.example.b4xmainpage._as_tabmenuadvanced1_tabclick(b4xmainpage.java:93)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
    at b4a.example.as_tabmenuadvanced._tabclickevent(as_tabmenuadvanced.java:1371)
    at b4a.example.as_tabmenuadvanced._xpnl_tab_click(as_tabmenuadvanced.java:1510)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:7441)
    at android.view.View.performClickInternal(View.java:7418)
    at android.view.View.access$3700(View.java:835)
    at android.view.View$PerformClick.run(View.java:28676)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7839)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
    at libcore.io.Linux.open(Native Method)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
    at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7725)
    at libcore.io.IoBridge.open(IoBridge.java:561)
    ... 36 more
** Activity (main) Pause event (activity is not paused). **
** Service (starter) Destroy (ignored)**
[IDE message - 5:50:28]
Archivos innecesarios no fueron encontrados.

Rubén
 

coley

Member
Licensed User
Longtime User
Hi, I think the attachment is incorrect as it doesn't even use the ASPopupMenuAdvanced library.
I was expecting an example that uses the advanced library but it's exactly the same as the ASPopupMenu example.
I'll figure it out

Great work by the way and thank you for sharing.
 

gigi0ne

Member
Licensed User
Longtime User
hi Alexander
a question, is it possible to leave the icons as they are drawn without changing the color?
For example, if I add a tab with the two icons (selected and normal), leave them as they are without changing them when they are displayed?

I hope I was clear, even if I don't think so
Thank you
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…