B4A Library ParsBottomSheetBuilder

Attachments

  • ParsBottomSheetBuilderLib.zip
    50.3 KB · Views: 679
  • ParsBottomSheetBuilder.zip
    66.9 KB · Views: 699
Last edited:

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
I got this error on compiling ..
B4A Version: 9.00
Parsing code. (0.01s)
Building folders structure. (0.03s)
Compiling code. (0.02s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.BottomSheet.Modal'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:26: error: Error: No resource found that matches the given name: attr 'behavior_hideable'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:27: error: Error: No resource found that matches the given name: attr 'behavior_skipCollapsed'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Design.BottomSheetDialog'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:30: error: Error: No resource found that matches the given name: attr 'bottomSheetStyle'.
res\values\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'.
res\values\theme.xml:6: error: Error: No resource found that matches the given name: attr 'colorAccent'.
res\values\theme.xml:4: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
res\values\theme.xml:5: error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.
res\values\theme.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Design.Light.BottomSheetDialog'.
res\values\theme.xml:11: error: Error: No resource found that matches the given name: attr 'bottomSheetStyle'.
res\values\theme.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.BottomSheet.Modal'.
res\values\theme.xml:15: error: Error: No resource found that matches the given name: attr 'behavior_hideable'.
res\values\theme.xml:16: error: Error: No resource found that matches the given name: attr 'behavior_skipCollapsed'.
 

jimmyF

Active Member
Licensed User
Longtime User
You need to reference the DesignSupport library.
It's weird that the IDE says it is not used but compilation definitely depends on it.
 

DonManfred

Expert
Licensed User
Longtime User
You need to reference the DesignSupport library.
true

B4X:
dependencies {
  implementation 'com.github.rubensousa:bottomsheetbuilder:1.6.1'
  implementation 'com.android.support:design:27.1.1'
}
 

jimmyF

Active Member
Licensed User
Longtime User

mshafiee110

Active Member
Licensed User
Longtime User
I got this error on compiling ..
B4A Version: 9.00
Parsing code. (0.01s)
Building folders structure. (0.03s)
Compiling code. (0.02s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.BottomSheet.Modal'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:26: error: Error: No resource found that matches the given name: attr 'behavior_hideable'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:27: error: Error: No resource found that matches the given name: attr 'behavior_skipCollapsed'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Design.BottomSheetDialog'.
C:\Android\tools\..\extras\b4a_local\unpacked-parsbottomsheetbuilder-63691106938000\res\values\values.xml:30: error: Error: No resource found that matches the given name: attr 'bottomSheetStyle'.
res\values\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'.
res\values\theme.xml:6: error: Error: No resource found that matches the given name: attr 'colorAccent'.
res\values\theme.xml:4: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
res\values\theme.xml:5: error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.
res\values\theme.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Design.Light.BottomSheetDialog'.
res\values\theme.xml:11: error: Error: No resource found that matches the given name: attr 'bottomSheetStyle'.
res\values\theme.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.BottomSheet.Modal'.
res\values\theme.xml:15: error: Error: No resource found that matches the given name: attr 'behavior_hideable'.
res\values\theme.xml:16: error: Error: No resource found that matches the given name: attr 'behavior_skipCollapsed'.
https://www.b4x.com/android/forum/t...nal-material-design-components.58893/#content
you must use this lib ...
 

Ibrahim Saleh

Member
Licensed User
Longtime User
Im having problem with having this lib work. The app compiles well the it open but when I choose one of the list it crash. The following is the error log:

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_lv_itemclick (java line: 410)
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/view/menu/MenuBuilder;
at com.github.rubensousa.bottomsheetbuilder.adapter.BottomSheetAdapterBuilder.addItem(BottomSheetAdapterBuilder.java:74)
at com.github.rubensousa.bottomsheetbuilder.BottomSheetBuilder.addItem(BottomSheetBuilder.java:157)
at com.ParsBottomSheetBuilder.ParsBottomSheet.addItem(ParsBottomSheet.java:98)
at de.amberhome.appcompat.serachviewexample.main._lv_itemclick(main.java:410)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA$1.run(BA.java:352)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6758)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:497)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:912)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.view.menu.MenuBuilder" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/de.amberhome.appcompat.serachviewexample-f45g-mELvllhCWKuLfurFg==/base.apk"],nativeLibraryDirectories=[/data/app/de.amberhome.appcompat.serachviewexample-f45g-mELvllhCWKuLfurFg==/lib/arm, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 14 more
main_lv_itemclick (java line: 410)
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/view/menu/MenuBuilder;
at com.github.rubensousa.bottomsheetbuilder.adapter.BottomSheetAdapterBuilder.addItem(BottomSheetAdapterBuilder.java:74)
at com.github.rubensousa.bottomsheetbuilder.BottomSheetBuilder.addItem(BottomSheetBuilder.java:157)
at com.ParsBottomSheetBuilder.ParsBottomSheet.addItem(ParsBottomSheet.java:98)
at de.amberhome.appcompat.serachviewexample.main._lv_itemclick(main.java:410)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA$1.run(BA.java:352)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6758)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:497)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:912)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.view.menu.MenuBuilder" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/de.amberhome.appcompat.serachviewexample-f45g-mELvllhCWKuLfurFg==/base.apk"],nativeLibraryDirectories=[/data/app/de.amberhome.appcompat.serachviewexample-f45g-mELvllhCWKuLfurFg==/lib/arm, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 14 more
 
Top