Closed shiraji closed 7 years ago
Currently, when I have a background drawable xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="4dp"/> <solid android:color="@color/solid"/> <stroke android:width="1dp" android:color="@color/border"/> </shape>
it produce the following
This pull request let users add padding to the tag. Like the following.
<mabbas007.tagsedittext.TagsEditText android:id="@+id/tags_edit" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:enabled="true" android:focusable="true" android:focusableInTouchMode="true" android:gravity="center_vertical" android:hint="@string/hint" android:includeFontPadding="false" android:paddingLeft="8dp" android:paddingRight="8dp" android:textColorHint="@color/text_hint" app:allowSpaceInTag="true" app:tagsBackground="@drawable/shape" app:tagsCloseImagePadding="5dp" app:tagsCloseImageRight="@drawable/delete" app:tagsPaddingBottom="6dp" app:tagsPaddingLeft="10dp" app:tagsPaddingRight="10dp" app:tagsPaddingTop="6dp" app:tagsTextColor="@color/black" app:tagsTextSize="@dimen/defaultTagsTextSize" />
What do you think?
Good idea, I'll merge it 👍
Thanks!
Currently, when I have a background drawable xml
it produce the following
This pull request let users add padding to the tag. Like the following.
What do you think?