If you download the DSNavigationDrawer sample "NavigationView1_0.zip" from the OP here:
https://www.b4x.com/android/forum/t...nal-material-design-components.58893/#content
Then add the IME library to the project.
Then add this line to the "Globals" section:
Then add these two lines to the "Activity_Create" right after the "ToolBar.InitMenuListener" line:
When you run the sample, you will get this critical error:
https://www.b4x.com/android/forum/t...nal-material-design-components.58893/#content
Then add the IME library to the project.
Then add this line to the "Globals" section:
B4X:
Dim IME As IME 'keyboard
Then add these two lines to the "Activity_Create" right after the "ToolBar.InitMenuListener" line:
B4X:
IME.Initialize("IME") 'keyboard
IME.AddHeightChangedEvent
When you run the sample, you will get this critical error:
B4X:
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 367)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:4212)
at android.view.ViewGroup.addView(ViewGroup.java:4065)
at android.view.ViewGroup.addView(ViewGroup.java:4010)
at android.view.ViewGroup.addView(ViewGroup.java:3986)
at anywheresoftware.b4a.objects.IME.AddHeightChangedEvent(IME.java:119)
at example.navigationview.main._activity_create(main.java:367)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
at example.navigationview.main.afterFirstLayout(main.java:104)
at example.navigationview.main.access$000(main.java:17)
at example.navigationview.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.