MSMaterialDrawer

itgirl

Active Member
Licensed User
Longtime User
Hello guys, does anyone know how to get the drawer width in landscape or portrait?
 

joneden

Active Member
Licensed User
Longtime User
Hi All,
Has anyone else had an issue on tall drawers that they do not open at the top. I have a drawer menu that extends off page and when the drawer opens it has been slid down. Is there a way to use a java object to get the draw to always open at the top?

Cheers

Jon
 

MarcoRome

Expert
Licensed User
Longtime User
Hi all. Is possibile add
B4X:
Dim MSP1 As MSProfile
MSP1.withName("XXXX")

without withIcon ??
Because if i put this anyway i have an empty circle

Thank you
 

phukol

Active Member
Licensed User
Longtime User
Hi there guys, i seem to have issues in showing the msicondrawable? im trying to run the example in MSMaterialDrawer example but all i get is this. No icon is shown? what could be the issue? Also is it possible if i just use a typeface for the drawable instead of using msiconic?

I already copied them under Files/fonts folders. The filename were fontawesome-webfont-4.3.0.ttf and google_material_design.ttf
 

Attachments

  • Untitled.png
    80.2 KB · Views: 289

Varmetric

Member
Licensed User
Longtime User

Hi.
When I run the "MSMaterialDrawer/B4A Samples/AppCompatDrawer" example the following runtime error occurs:

** Activity (main) Create, isFirst = true **
main_activity_create (java line: 327)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:208)
at com.maximussoft.appcompatdrawer.main._activity_create(main.java:327)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.maximussoft.appcompatdrawer.main.afterFirstLayout(main.java:102)
at com.maximussoft.appcompatdrawer.main.access$000(main.java:17)
at com.maximussoft.appcompatdrawer.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:54)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
... 14 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lde/amberhome/objects/appcompat/R$style;
at de.amberhome.objects.appcompat.ACToolbarLightWrapper.innerInitialize(ACToolbarLightWrapper.java:26)
at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:65)
at de.amberhome.objects.appcompat.ACToolBarWrapper.Initialize(ACToolBarWrapper.java:45)
at de.amberhome.objects.appcompat.ACToolBarWrapper._initialize(ACToolBarWrapper.java:77)
... 17 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "de.amberhome.objects.appcompat.R$style" on path: DexPathList[[zip file "/data/app/com.maximussoft.appcompatdrawer-2/base.apk"],nativeLibraryDirectories=[/data/app/com.maximussoft.appcompatdrawer-2/lib/x86, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 21 more
Suppressed: java.lang.ClassNotFoundException: de.amberhome.objects.appcompat.R$style
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 22 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 

Prosg

Active Member
Licensed User
Longtime User
When i open the Burger Icon (for the First Time) how can i have no selected row

ty
 

rscheel

Well-Known Member
Licensed User
Longtime User
@thedesolatesoul I could tell that references this route please

B4X:
#AdditionalRes: H:\MyProjects\Github_masters\MaterialDrawer-master\MaterialDrawer-master\library\src\main\res
#AdditionalRes: H:\MyProjects\Github_masters\MaterialDrawer-master\MaterialDrawer-master\app\src\main\res

I'm trying to take riding suit AppCompatToolbar.

Thanks.

I edit as I could run, thanks.
 
Last edited:

rscheel

Well-Known Member
Licensed User
Longtime User
Hello @thedesolatesoul, has identified a problem with the scroll include Drawer, it remains in the bottom of the layout a white strip, which cuts the layout.

Which is not the problem and tried to fix it but I have not succeeded, not if it's just me, leave attached the test and been doing.

File
 

Pcbeta Rabbit

Member
Licensed User
Longtime User

Pcbeta Rabbit

Member
Licensed User
Longtime User
[QUOTE =“rscheel,郵編:390023,會員:28002”,。謝謝你,為我,麻煩的是狀態欄的透明度失去[/ QUOTE]
Thanks, served me, the trouble is that the transparency of the status bar is lost.
You can try Material design
 

BarryW

Active Member
Licensed User
Longtime User
H

How to set selected item tru code. Something like MD.SelectedItem = 1

Tnx
 

rscheel

Well-Known Member
Licensed User
Longtime User
H


How to set selected item tru code. Something like MD.SelectedItem = 1

Tnx

B4X:
Sub MD_ItemClick(Position As Int, Identifier As Int)
    Log("Clicked:" & Position & " Iden:" & Identifier)
    ToastMessageShow("Clicked:" & Position & " Iden:" & Identifier, False)
End Sub
 

BarryW

Active Member
Licensed User
Longtime User
Tnx but it only captures the click event not setting the selected item.
 

BarryW

Active Member
Licensed User
Longtime User
Or can we removed the highlight on the selecteditem after click... just turn off the highlight...

Tnx...
 

BarryW

Active Member
Licensed User
Longtime User
Error on MD_Closed, MD_Move, MD_Open, signature does not match...
 

Prosg

Active Member
Licensed User
Longtime User
B4X:
Sub menuBurger_Opened
    Log("open")
End Sub

Sub menuBurger_ItemClick(Position As Int, Identifier As Int)

I don't have problem with _itemClick but _Opened have an error :

java.lang.Exception: Sub menuburger_opened signature does not match expected signature.

idea ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…