Feel easy to place drawables center with text :)
The attribute paddingLeft
, paddingRight
, paddingTop
,
paddingBottom
in xml may not works as expected,padding
and drawablePadding
still works.
Config gravity
in xml when necessary.
Issue report welcomed.
Known bug:When used in LinearLayout with attribute android:layout_height="0dp"
android:layout_weight="1"
,text will be invisible.
Download:
DrawableCenterTextView_v1.2.jar
Last update:2017/02/22