A TextView that have a spinner background that can be customizing .Like line color of bottom line or dropdown arrow and so on.
An important feature is RTl support .
add this to dependencies block in build.gradle file :
implementation 'com.github.smartdevelopers-ir:SmartSpinner:1.5.0'
<ir.smartdevelopers.test.customView.SmartSpinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LTR Text"
android:textColor="#151515"
android:textSize="14sp"
android:layoutDirection="rtl"
app:arrowSize="10dp"
app:tint="@color/colorAccent"
app:lineColor="@color/colorPrimaryDark"
app:arrowColor="#304FFE"
app:roundArrow="true"
app:spStyle="underlined"
/>
If you set tint
, lineColor
and arrowColor
will be overriden with tint
.
To change ripple color set colorControlHighlight
and for bottom line pressed color set colorControlActive
in theme.