TNSpinner
- A CustomView likes Spinner using Kotlin and TextView. Not Spinner of Android SDK
- Very easy to custom an item and drop down item from designer or your custom.
Demo
Usage
<vn.taindb.tnspinner.SpinnerTextView
android:id="@+id/spinner"
android:layout_width="300dp"
android:layout_height="@dimen/item_height"
android:layout_gravity="center_horizontal"
android:background="@drawable/spinner_item_collapse_bg"
android:clickable="true"
android:enabled="true"
android:gravity="center"
android:hint="[Select an Android Model...]"
android:textColor="@android:color/white"
android:textColorHint="#85ffffff"
android:textSize="16sp"
android:textStyle="bold"
app:arrow_icon="@drawable/ic_arrow"
app:collapse_item_display_background="@drawable/spinner_item_collapse_bg"
app:dropdown_item_height="@dimen/item_height"
app:dropdown_max_height="100dp"
app:drop_down_list_background="@drawable/drop_down_bg"
app:expand_item_display_background="@drawable/spinner_item_expand_bg"
app:hint_text_enable="true" />
TODO
If you want to suggest better implementation or you have found some mistakes in this project, please tell me at issue
License
Copyright (C) 2018 Tai Nguyen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.