Android Question [Solved] GetLabelAt in AS_Chips

asales

Expert
Licensed User
Longtime User
I use the (another great) AS_ScrollingChip lib from @Alexander Stolte.

I use this code to move between the selected chips and get the text of the chip (that is different of the tag).
B4X:
For i = 0 To AS_ScrollingChips1.getSelections.Size - 1
   Log(AS_ScrollingChips1.GetLabelAt(AS_ScrollingChips1.getSelections.Get(i)).Text)
Next
I tried to use the same approach with the AS_Chips, but the lib don't have the GetLabelAt property.

Is possible to get the text of the chip in this lib?

Thanks in advance for any tips
 
Last edited:

asales

Expert
Licensed User
Longtime User
I solved it with this code:
B4X:
For Each Index As Int In AS_Chips1.GetSelections
    Log(AS_Chips1.GetChip(Index).Text)
Next
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
  • 1.13
    • Add GetLabelAt - Gets the chip text label
    • Add GetBackgroundAt - Gets the chip background panel
 
Upvote 0
Top