allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.lifugan96:SuperSpinnerView:Tag'
}
<com.glf.utilslibrary.view.SuperSpinnerView
android:id="@+id/custom_spinner"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="10dp"
android:background="@drawable/gray_ll_border2"
android:gravity="center"
app:defaultText="默认值"
app:spHeight="0dp"
app:spMargin="10dp"
app:spTextColor="@color/item_list_gray"
app:spTextLayoutRight="true"
app:spTextSize="0dp"
app:spWidth="0dp" />