有谁知道如何像附图中那样做文本视图列表?

Does anyone know how to do textview list like in attached image?

有谁知道如何像附图中那样制作文本视图列表? 多排儿童,具体取决于他们的大小。

Set it as your textView background

Save it in drawable folder

<shape xmlns:android="http://schemas.android.com/apk/res/android">
     <gradient
        android:endColor="@color/something"
        android:centerColor="@color/something_else"
        android:startColor="@color/something_else_still"
        android:angle="270" />
    <corners
        android:radius="3dp" />
    <padding
        android:left="10dp"
        android:top="10dp"
        android:right="10dp"
        android:bottom="10dp" />
</shape>

不准确,但您可以对其进行编辑以满足您的要求

这可能有助于您安排标签。 FlowLayout

查看以下链接,它可能对您有所帮助。

  1. 使用多个自动完成的文本视图:Bubble-Text-Library(您也可以从 xml 文件更改视图)Link
  2. android-筹码(@Suhas Bachewar 建议)Link
  3. chipview(多自定义颜色)Link

还有更多