Hi, @Italo
i want to know that, how you set different fonts in every ListItem
i mean font List
Thatâs not a listview. Itâs just a lot of buttons in a vertical scroll arrangement.
This post was flagged by the community and is temporarily hidden.
I donât think why my post is flagged.
Please help because Iâm waiting for answer from 6 hours.
If you read my first post here, you will see what extensions I used and who the developers are. Please contact them for extensions.
Ok then which method you use for change buttons background colour after click
i notice that youâre using textbox addon extension. and you not mention in youâre first post
I donât think I used that extension. If I did I will say it in my credits section. Iâll check the app and see if I forgot to mention. Honestly I donât remember.
To change the button background color just use this block:
i know , that this option is available in block section.
but how to change color of all buttons and only one button is another color.
if i trying to change every buttom in block section than i want to create lots of block
What I did there is have all the buttons ID in a list. When I click one, I save that id in a local variable and do a FOR EACH loop to go thru all the buttons. Inside that loop I did an IF item =/= button clicked then I change the background color to the ânon selectedâ color, ELSE I change it to the âselectedâ color.
That is a more âsafeâ or failproof way to make sure you never have more than one button selected.
But you can also do it like this:
Save the clicked button ID in a variable. When a button is clicked, first change the color of the button in the variable to the ânon selectedâ color and then store the new clicked button in that variable. After that change the color of the clicked button to the âselectedâ color.
With this method you need to be more careful, if you donât keep your procedures organized and other procedures can select fonts too, then you might end up with two or more buttons selected at the same time. Thatâs why I used the FOR EACH loop to prevent that.
Thanks, for replay
but i have confussion with Button Id because i have not seen any button ID option in button component.
itâs mean button name is button id.
can you give screenshort of this process. for better understanding
thanks
iâm going to try this methord.
hi, i Found i another methord with no chance to error. and working perfectly.
where red is my non selected color and green is sected color.
Thanks for sharing your method.
In that case why not use it like this and only this
Because I want specific button click action Not All buttons.
Then exclude those that you donât want