Android: How make dynamically generated check boxes or radio buttons wrap automatically? -


what trying right making radio buttons or checkbox button wrap on own. generating buttons dynamically java. how make if cannot fit on row put button on next row. looking @ image can see third check box cut off screen. how can make start line?

enter image description here

there no way in android, rather implement logic able measure child controls of layout , calculate if reaches end of screen, , create new layout row.

take @ post subject, using linearlayout: android - linearlayout horizontal wrapping children

this approach discussed here: android horizontal linearlayout - wrap elements


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -