Android Question Spinner Wheel - Vertical and Horizontal

dibesw

Active Member
Licensed User
Longtime User
I have this code that works well


library is AndroidSpinnerWheel v1.01

veels.png


Now when I try to create a new SpinnerWheel app crash after Activity.LoadLayout ("....").
I tried them all. What is the problem?
 

dibesw

Active Member
Licensed User
Longtime User
Thanks Johan,
I have these file:
res/values/wheel__attrs.xml
res/drawable/divider_dark_gradient_horizontal.xml
res/drawable/wheel_bg_hor.xml
res/drawable/wheel_bg_ver.xml
res/drawable/wheel_val.xml
res/layout/spinner_item.xml
this files there are in the application that I have downloaded and the application works.
I just try to add another wheel control but in this case it doesn't work anymore.
I put these modules in a new application but the result is the same
 
Last edited:
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Thanks Johan,
I have these file:
res/values/wheel__attrs.xml
res/drawable/divider_dark_gradient_horizontal.xml
res/drawable/wheel_bg_hor.xml
res/drawable/wheel_bg_ver.xml
res/drawable/wheel_val.xml
res/layout/spinner_item.xml
this files there are in the application that I have downloaded and the application works.
I just try to add another wheel control but in this case it doesn't work anymore.
I put these modules in a new application but the result is the same
Can you export/zip your project and upload it?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Is there no way to overcome this issue?
Sure. Create a Resourcefolder with the needed files. reference the folder in your project.
Asuming you named the folder "res" and put the folder in your projectdir.

then

res/values/wheel__attrs.xml
res/drawable/divider_dark_gradient_horizontal.xml
res/drawable/wheel_bg_hor.xml
res/drawable/wheel_bg_ver.xml
res/drawable/wheel_val.xml
res/layout/spinner_item.xml

these are the folderstructue which must be present.

Last you need to add a reference to this folder in your project.
B4X:
#AdditionalRes: ..\res

PS: No need to mark any files here writeprotected as files in this folder(s) are not deleted when compiling.
 
Upvote 0
Top