- Is it possible, and how to do it ( if it is ) to have a multy row TabBar, based on the width of the container ?
Is it possible, and how to do it ( if it is ) to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s as simple as giving your TabBar a TileLayout. You don’t have to subclass TabBar and you don’t even have to create a custom skin class for it. Just do this:
Which will produce something like this:
The gap below the TabBar you saw, is produced because TileLayout will by default allocate a certain number of rows. You can override this by setting the
requestedRowCountto the number of rows you expect (2 in this example).If you want it to be truly dynamic, you can calculate the required number of rows by comparing the TabBar’s total
widthto the TileLayout’scolumnWidth, and bind the resulting number to therequestedRowCountproperty.