smartdevelopers-ir / SmartSpinner

A TextView that has own spinner like background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartSpinner

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 .

Importing :

add this to dependencies block in build.gradle file :

implementation 'com.github.smartdevelopers-ir:SmartSpinner:1.5.0'

Image

Usage :

<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.

About

A TextView that has own spinner like background


Languages

Language:Java 100.0%