MSMaterialDrawer

andre.astafieff

Member
Licensed User
Longtime User
Hi @thedesolatesoul,

I have attached the example app compact project. The iconiDrawable is not visible.

Regards
SK


@shashkiranr


You could integrate the appcompact project?

I am trying to use your example, but with problems ..


It displays the following error:

** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 54)
ToolBar.SetAsActionBar
java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
at android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:193)
at android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:96)
at de.amberhome.objects.appcompat.ACToolBarWrapper.SetAsActionBar(ACToolBarWrapper.java:244)
at de.amberhome.appcompat.toolbarmenuexample.main._activity_create(main.java:355)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.appcompat.toolbarmenuexample.main.afterFirstLayout(main.java:100)
at de.amberhome.appcompat.toolbarmenuexample.main.access$100(main.java:17)
at de.amberhome.appcompat.toolbarmenuexample.main$WaitForLayout.run(main.java:78)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5756)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)

On line:

B4X:
ToolBar.SetAsActionBar
 

Haris Hafeez

Active Member
Licensed User
Longtime User
I know this might have been done by some of you but I'm unable to come up with a combination I want.

I want to have a light theme for the app(so the main panel and the drawer are light themed) but I want to have a dark toolbar with WHITE text for the title, subtitle and the menu items.

If I use MaterialDrawerTheme as the base, I get the toolbar I like but the app theme is dark. If I use the MaterialDrawerTheme.Light, I get a light app theme but with black text for title, subtitle and menu items.

Basically, I'm looking to style like the Gmail app.

I'd appreciate your help with this.
 

Jerez

Active Member
Licensed User
Longtime User
Moto G2 and Sony Xperia E1.
It shows a blank line in the footer of screen.

I tested now in tablet Galaxy Note 8 and it don't shows the blank line.

Thanks for your answers. I will continue the tests.

Hi, i have same problem in Motorola E... how can be fixed? in Samsung Galaxy Tab works fine.

Maybe a Density or DIP problem?
 

Attachments

  • Captura4.jpg
    Captura4.jpg
    79.4 KB · Views: 264
Last edited:

Fusseldieb

Active Member
Licensed User
Longtime User
Hi, i have same problem in Motorola E... how can be fixed? in Samsung Galaxy Tab works fine.

Maybe a Density or DIP problem?
i have this problem on my nexus 5 and galaxy pocket too... i dont know how to fix it!
 

MarcoRome

Expert
Licensed User
Longtime User
Appodeal (library) + MsMaterialDrawer ( incompatible ) give me this error:

B4X:
B4A version: 5.20
Parsing code.    (0.00s)
Compiling code.    (0.20s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.02s)
Generating R file.    (1.97s)
Compiling generated Java code.    (3.04s)
Convert byte code - optimized dex.    Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Landroid/support/v4/print/PrintHelperKitkat$1;
    at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
    at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
    at com.android.dx.command.dexer.Main.processClass(Main.java:732)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
    at com.android.dx.command.dexer.Main.access$300(Main.java:83)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:632)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
    at com.android.dx.command.dexer.Main.run(Main.java:246)
    at com.android.dx.command.dexer.Main.main(Main.java:215)
    at com.android.dx.command.Main.main(Main.java:106)
1 error; aborting

Screenshot 2015-08-29 19.12.50.png


In attachment you have sample Appodeal, if you compile without library MSMaterialDrawer work without problem.

HERE library Appodeal_Basic4Android_1.13.zip
Any idea, solution ?
Thank
Marco
 

Attachments

  • Appodeal_B4A_DEMO.zip
    8.9 KB · Views: 225
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
Appodeal (library) + MsMaterialDrawer ( incompatible ) give me this error:

B4X:
B4A version: 5.20
Parsing code.    (0.00s)
Compiling code.    (0.20s)
 
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.02s)
Generating R file.    (1.97s)
Compiling generated Java code.    (3.04s)
Convert byte code - optimized dex.    Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Landroid/support/v4/print/PrintHelperKitkat$1;
    at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
    at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
    at com.android.dx.command.dexer.Main.processClass(Main.java:732)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
    at com.android.dx.command.dexer.Main.access$300(Main.java:83)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:632)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
    at com.android.dx.command.dexer.Main.run(Main.java:246)
    at com.android.dx.command.dexer.Main.main(Main.java:215)
    at com.android.dx.command.Main.main(Main.java:106)
1 error; aborting

View attachment 36990

In attachment you have sample Appodeal, if you compile without library MSMaterialDrawer work without problem.

HERE library Appodeal_Basic4Android_1.13.zip
Any idea, solution ?
Thank
Marco

Resolved with support Appodeal.. In Appodeal_xx.jar delete folder "android", thats all
 

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings, i want to know, where is the icons is located or how install it... in other words, not achieving the icons do not see that part must be located
i can change the top , width of the drawer, in the drawer can be placed buttons or edit text
 

Attachments

  • drawer.PNG
    drawer.PNG
    87.7 KB · Views: 265

asales

Expert
Licensed User
Longtime User
Hello again, @thedesolatesoul .

I have a problem with this library in my new app (in other apps the library works fine).

It shows an blank line in the footer (see image1).
When I open the drawer the blank line disappears.

My code is in attached.

I tried, but I don't know what's happening and how to solve.

Thanks in advance for any tip.

Problem solved with this line:
B4X:
MDB.withTransluscentStatusbar(False)
 

Ian Garton

Member
Licensed User
Longtime User
Can anyone please advise what the event signature is for the _Slide event?
I can use xxx_Slide(o as object)
however it would be nice to know the parameter type.
Thanks.
 

wimpie3

Well-Known Member
Licensed User
Longtime User
How can I reconstruct the menu when I want to add/remove something on the list?
 
Top