Skip to content

xesam/Android-CenterDrawableView

Repository files navigation

CenterDrawableView

A center align drawable(drawableLeft or drawableTop or drawableRight or drawableBottom) View.

include TextView, Button, CompoundButton, RadioButton

build.gradle

implementation 'io.github.xesam:android-centerdrawableview:0.0.1'

layout.xml:

<io.github.xesam.android.views.center.CenterDrawableTextView android:layout_width="match_parent"
    android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_launcher_foreground"
    android:text="left" />

downside

only support one drawableXXXX!

center_drawable

About

center align drawable(left, top, right, bottom) view

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages