-
-
Save codeforfun-jp/28f204d1c1440702ea87305f04ec53a8 to your computer and use it in GitHub Desktop.
How to use spinner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="center" | |
tools:context=".MainActivity"> | |
<Spinner | |
android:id="@+id/spinner" | |
android:layout_width="240dp" | |
android:layout_height="wrap_content" | |
android:minHeight="48dp" | |
android:spinnerMode="dropdown" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment