Skip to content
New issue

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

Cannot add two spinner under same layout #144

Open
SyedMdKamruzzaman opened this issue Nov 16, 2020 · 1 comment
Open

Cannot add two spinner under same layout #144

SyedMdKamruzzaman opened this issue Nov 16, 2020 · 1 comment

Comments

@SyedMdKamruzzaman
Copy link

I add two spinner in same layout but it shows only one

<com.jaredrummler.materialspinner.MaterialSpinner
android:id="@+id/spinner"
app:ms_dropdown_max_height="350dp"
app:ms_dropdown_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<com.jaredrummler.materialspinner.MaterialSpinner
    android:id="@+id/tempUnit"
    android:layout_marginTop="150dp"
    app:ms_dropdown_max_height="350dp"
    app:ms_dropdown_height="wrap_content"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>
@RikySaepuloh
Copy link

Can you provide your rest of codes? I mean your parent view, is it Horizontal LinearLayout? or anything else?

It looks like you want to set the both view layout_width as match_parent.
Please keep in mind that you need to consider the layout width and height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants