- Notifications
You must be signed in to change notification settings - Fork 311
Closed
Labels
Description
中文好像没有居中,而且文字的tag_vertical_padding效果好像不对,我写了一个textview,设置一个shape,这样看起来才是符合预期的效果。
我是这样设置的:
<co.lujun.androidtagview.TagContainerLayout android:layout_marginTop="16dp" android:id="@+id/tagcontainerLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" app:container_border_width="0dp" app:container_border_radius="0dp" app:container_border_color="#ffffff" app:container_background_color="#ffffff" app:container_enable_drag="false" app:horizontal_interval="12dp" app:vertical_interval="12dp" app:tag_clickable="true" app:tag_theme="none" app:tag_border_width="1dp" app:tag_corner_radius="50dp" app:tag_horizontal_padding="16dp" app:tag_vertical_padding="5dp" app:tag_text_size="14dp" app:tag_text_color="#3ea2ef" app:tag_border_color="#3ea2ef" app:tag_background_color="#ffffff" /><TextView android:layout_margin="20dp" android:gravity="center" android:textSize="14sp" android:textColor="#3ea2ef" android:text="平面设计" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingBottom="5dp" android:paddingTop="5dp" android:background="@drawable/shape_re" android:layout_width="wrap_content" android:layout_height="wrap_content"/><?xml version="1.0" encoding="utf-8"?> <shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ffffff"/> <stroke android:color="#3ea2ef" android:width="1dp"/> <corners android:radius="50dp"/> </shape>Reactions are currently unavailable