Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文好像没有居中? #1

Closed
GalvinChen opened this issue Jan 12, 2016 · 5 comments
Closed

中文好像没有居中? #1

GalvinChen opened this issue Jan 12, 2016 · 5 comments
Labels

Comments

@GalvinChen
Copy link

中文好像没有居中,而且文字的tag_vertical_padding效果好像不对,我写了一个textview,设置一个shape,这样看起来才是符合预期的效果。
Uploading device-2016-01-12-223814.png…

我是这样设置的:

<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>
@GalvinChen
Copy link
Author

device-2016-01-12-223814

@whilu
Copy link
Owner

whilu commented Jan 12, 2016

@xiaochencode 你好,感谢你的反馈。现在初步修改了居中问题和tag_vertical_padding这个属性的效果,最新库还没有上传,等到另外几个bug汇总修改后再更新,你可以本地导入使用。再次感谢!!!

@SlandKiss
Copy link

The editext without checking the null or empty value

@whilu whilu added the bug label Jan 13, 2016
@whilu
Copy link
Owner

whilu commented Jan 13, 2016

@SlandKiss Yes, the bug has been fixed in commit d52df4c. Now, if input is null or empty value, a TagView will be added with empty value. Thanks!

@whilu whilu closed this as completed Jan 19, 2016
whilu pushed a commit that referenced this issue Jun 13, 2016
support max line count for tag container.
@jaydenjune
Copy link

点击某一个tagview,使其背景色改变

whilu pushed a commit that referenced this issue Aug 20, 2018
Adding optional images for left-to-right languages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants