Git Product home page Git Product logo

Comments (4)

kingideayou avatar kingideayou commented on August 11, 2024

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

from tagcloudview.

xuhuan avatar xuhuan commented on August 11, 2024

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

android:gravity="left"

from tagcloudview.

kingideayou avatar kingideayou commented on August 11, 2024

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

from tagcloudview.

xuhuan avatar xuhuan commented on August 11, 2024

不一样,参数设置如下

<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"

from tagcloudview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.