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

标签左对齐怎么处理,点击更多能否展开 #3

Closed
xuhuan opened this issue Sep 24, 2015 · 4 comments
Closed

标签左对齐怎么处理,点击更多能否展开 #3

xuhuan opened this issue Sep 24, 2015 · 4 comments

Comments

@xuhuan
Copy link

xuhuan commented Sep 24, 2015

如题,目前单行模式下在1080p的设备上标签居中偏左一点排列,在480p设备上偏右排列。
多行模式下正常。

@kingideayou
Copy link
Owner

感谢反馈。
左对齐是什么意思,没太理解,最好可以截个图...
已添加 TagCloudView.singleLine(boolean) 方法,可以动态设置单行或多行显示。暂未上传到 JCenter

@xuhuan
Copy link
Author

xuhuan commented Sep 25, 2015

就像这个issue的网页排版一样,我们现在打出来的字都是从左往右排列过去。排列贴着最左边开始往后面排。
现在单行模式下多个标签并不是从左边开始排的,而是如一开始说的那样子。
换到android里是

android:gravity="left"

@kingideayou
Copy link
Owner

单行模式的效果跟效果图不一样吗?这个效果图就是左对齐的啊...

@xuhuan
Copy link
Author

xuhuan commented Sep 25, 2015

不一样,参数设置如下

<me.next.tagview.TagCloudView
            android:id="@+id/tag_cloud_view_4"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:tcvBackground="@drawable/background_tag_selector"
            app:tcvTextColor="#42A5F5"
            app:tcvShowRightImg="false"
            app:tcvSingleLine="true"
            app:tcvTextSize="10px"
            />

其他不变,就下面的改成多行的就正常了。

app:tcvSingleLine="false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants