iOS Question ASRatingBar in a CLV

Alexander Stolte

Expert
Licensed User
Longtime User
I added a new event to V1.05 TouchStateChanged.

Not tested as I have absolutely no time, but it is the same principle as with the seek bars

As soon as you put your finger on the view the event is triggered and then you have to deactivate the list, when your figner is finished the event is triggered again and the list is reactivated. Works wonderfully in my cleantaks app with the priority seekbar

B4X:
Private Sub ratingbar1_TouchStateChanged (Pressed As Boolean)
    #If B4I
    xclv_Main.sv.As(ScrollView).ScrollEnabled = Not (Pressed)
    #End If
End Sub
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
I added a new event to V1.05 TouchStateChanged.

Not tested as I have absolutely no time, but it is the same principle as with the seek bars

As soon as you put your finger on the view the event is triggered and then you have to deactivate the list, when your figner is finished the event is triggered again and the list is reactivated. Works wonderfully in my cleantaks app with the priority seekbar

B4X:
Private Sub ratingbar1_TouchStateChanged (Pressed As Boolean)
    #If B4I
    xclv_Main.sv.As(ScrollView).ScrollEnabled = Not (Pressed)
    #End If
End Sub
Hello Alex,

Thank you for your quick answer/update. Hover left/right was working fine. When i was clicking on a star does not work. As i read here, it is a limitation of the touch gesture. If i do bit longer click on a star, then ratingbar works fine.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
When i was clicking on a star does not work. As i read here, it is a limitation of the touch gesture. If i do bit longer click on a star, then ratingbar works fine.
Try this fix for this, if it works for you, i'll put this change to the public release:
 

Attachments

  • ASRatingBar.b4xlib
    2.5 KB · Views: 114
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
Try this fix for this, if it works for you, i'll put this change to the public release:
Indeed! That is a working solution! Thank you very much for help! I have just placed a monthly donation for your contribution!
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Upvote 0
Top