Skip to content

Button's strange size #28

@santealtamura97

Description

@santealtamura97

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
bug1
Only when I select a button it shows correctly.
bug2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions