We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:orientation="vertical"> <nl.bryanderidder.themedtogglebuttongroup.ThemedToggleButtonGroup android:id="@+id/days" android:layout_width="match_parent" android:layout_height="wrap_content" app:justifyContent="center"> <!-- this attribute is from the underlying FlexboxLayout --> <nl.bryanderidder.themedtogglebuttongroup.ThemedButton android:id="@+id/monday" android:layout_width="wrap_content" android:layout_height="38dp" app:toggle_text="Lunedì" app:toggle_selectedBackgroundColor="@color/primary_color"/> <nl.bryanderidder.themedtogglebuttongroup.ThemedButton android:id="@+id/tuesday" android:layout_width="wrap_content" android:layout_height="38dp" app:toggle_text="Martedì" app:toggle_selectedBackgroundColor="@color/primary_color"/> /> <nl.bryanderidder.themedtogglebuttongroup.ThemedButton android:id="@+id/wednesday" android:layout_width="wrap_content" android:layout_height="38dp" app:toggle_text="Mercoledì" app:toggle_selectedBackgroundColor="@color/primary_color"/> /> <nl.bryanderidder.themedtogglebuttongroup.ThemedButton android:id="@+id/btn2" android:layout_width="wrap_content" android:layout_height="38dp" app:toggle_text="Giovedì" app:toggle_selectedBackgroundColor="@color/primary_color"/> /> </nl.bryanderidder.themedtogglebuttongroup.ThemedToggleButtonGroup> </LinearLayout>
Screenshots Only when I select a button it shows correctly.
The text was updated successfully, but these errors were encountered:
I cannot reproduce this. Have you tested this with just the code you shared? It seems the height is only set on the inactive buttons.
Sorry, something went wrong.
I also encountered this bug. It always happened when views get switched, like in a tabbed layout. I used a ViewModel to resolve this issue.
No branches or pull requests
The code
Screenshots


Only when I select a button it shows correctly.
The text was updated successfully, but these errors were encountered: