B4A Library [B4X] [XUI] AS WheelPicker - Spinner - a modern single/multiple choice picker view - based on xCustomListView [Payware]

tsteward

Well-Known Member
Licensed User
Longtime User
Sorry if this is a dumb question but
In your example video you show a next and previous button.
Is there a way to add these automatically or do I have to add X number of buttons and try to position them above and below the wheels?
 

tsteward

Well-Known Member
Licensed User
Longtime User
Sorry if this is a dumb question but
In your example video you show a next and previous button.
Is there a way to add these automatically or do I have to add X number of buttons and try to position them above and below the wheels?
My apologies I found the other thread.

Thank you
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 3.04
    • Add Event CustomDrawItemChange
CustomDrawItemChange
B4X:
Private Sub ASWheelPicker1_CustomDrawItemChange(NewItem As ASWheelPicker_CustomDraw,OldItem As ASWheelPicker_CustomDraw)
    NewItem.Views.TextLabel.Text = "New Text"
   
    OldItem.Views.TextLabel.Text = OldItem.Item.Text
End Sub

Is there a way to change the colour of the currently selected item on a wheel?
It's a very nice new event, thanks for that!
 

mehdipass

Member
Hi,
When SelectRow ,I got this error:
My panel visible is false in first time.

Error:
aswheelpicker$ResumableSub_ScrollChange2resume (java line: 1711)
java.lang.RuntimeException: Object should first be initialized (View).
Did you forget to call Activity.LoadLayout?
    at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
    at anywheresoftware.b4a.objects.B4XViewWrapper.GetView(B4XViewWrapper.java:320)
    at com.name.b4x4a.aswheelpicker$ResumableSub_ScrollChange2.resume(aswheelpicker.java:1711)
    at com.name.b4x4a.aswheelpicker._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(aswheelpicker.java:1624)
    at com.name.b4x4a.aswheelpicker._xclv_scrollchanged(aswheelpicker.java:2281)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
    at b4a.example3.customlistview._scrollhandler(customlistview.java:978)
    at b4a.example3.customlistview._sv_scrollchanged(customlistview.java:1051)
    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:888)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:213)
    at android.app.ActivityThread.main(ActivityThread.java:8178)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
 

Alexander Stolte

Expert
Licensed User
Longtime User
Is unfortunately the native behavior of the ScrollList, if the panel is invisible when filling the list, then the actions are not performed. Unfortunately there is nothing I can do. The panel where the WheelPicker is must be visible when initializing and filling. You can also hide the panel and then bring it to the foreground when you need it.
 

Alexander Stolte

Expert
Licensed User
Longtime User

angel_

Well-Known Member
Licensed User
Longtime User
I am trying to change the color of the text in the abstract designer.

In B4i, it always appears white
In B4A, I don't see the text

After loading the xWheel I use xWheel.SelectRow to scroll the selector but it stays on the first row

Note: I have updated the library from an old version v2.03
 
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
I am trying to change the color of the text in the abstract designer.
But there is no custom property for the text color in the designer.

I use xWheel.SelectRow to scroll the selector but it stays on the first row
Try it with a Sleep(0) or Sleep(1000) before you scroll.
If it still doesn't scroll, then I need more info about the parameters you pass in the SelectRow.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…