B4J Question [SOLVED]Check Box Tick Size

Peter Lewis

Active Member
Licensed User
Longtime User
Hi All

I am looking for a method of increasing the checkbox size in a custom list view. I have seen it has been done on Android a while ago. I have tried resizing the view with no luck, another option would be to change it to a toggle button with a graphic. Before I do that , I just wanted to check if there is any other way , Possibly thru CSS ?

The Checkbox looks lost here.


1718451959230.png


Thank you
 

stevel05

Expert
Licensed User
Longtime User
Taken from this StackExchange post

1718455271701.png


Css:
.big-check-box > .box {
    -fx-padding: 2em 2em 3em 3em ;
}
.big-check-box > .box > .mark {
    -fx-padding: 3em 3em 4em 4em;
}

You'll need add the class to each checkbox in the listview and play with it to get it exactly as you want it.
 

Attachments

  • BigCheckBox.zip
    2.2 KB · Views: 95
Upvote 1
Top