Android Question Spin Wheel

jchal

Active Member
Licensed User
Longtime User
hi all
i am tring to speen a weel but i cant figure it out how to spin it any ideas are wellcome Also i tryed to upload a zipped file with my code and it says file is too lagre.
 
Last edited:

Magma

Expert
Licensed User
Longtime User
Also i tryed to upload a zipped file with my code and it says file is too lagre.
...Hi there...
- Delete folder Autobackups
- Delete everything in folder objects...
- Zip "project folder" and attach it here...

but if you have many and big files in assets... use google drive or a 3rd solution...

edit: Guessing what you wanna do... i am not sure... but check this too:
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
missing b4xmainpage.bas...

Probably was in different folder... will be good to copy it into your project/parent folder... then remove... add it again...

I don;t know if other modules need to copy into your parent folder... then re-attach your project (without objects, autobackups)...
 
Upvote 0

jchal

Active Member
Licensed User
Longtime User
can you try this it is an export from b4x, the code is nothing special i am trying to rotate a weel but......
 

Attachments

  • spw.zip
    68.2 KB · Views: 124
Upvote 0

Magma

Expert
Licensed User
Longtime User
Not sure, if you want something like that...

B4X:
For k=0 To 359
        ImageView1.Rotation= k
        Sleep(0)
Next

Is not the only and the best way... but it is the simplest... i can think right now...

info1: use transparent png files.. and for better circle/wheel have the same width, height
info2: you can a second transparent png with the pointer in front of imageview1. - without the moving it..
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I think that you are looking for something like this:

1668248580252.png


Attached the B4XPages project.

I have just seen that one of your images comes from this site.
 

Attachments

  • SpinningWheelSimple.zip
    15.8 KB · Views: 127
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Here you are.
In the code you can set the reference either at 12 o'clock or at 3 o'clock.
At the end of spinning the wheel snaps to the middle of the sector.
You can change the number of sectors,

1668587765896.png
 

Attachments

  • SpinningWheelSimple.zip
    75.8 KB · Views: 148
Last edited:
Upvote 0
Top