【问题标题】:How to create TextView with cross(x) button at end of it?如何在其末尾创建带有 cross(x) 按钮的 TextView?
【发布时间】:2014-01-26 11:15:20
【问题描述】:

是否有任何像 TextView 这样包含十字按钮的小部件,或者是否有 TextView 的任何属性可以自动创建它?我希望十字按钮删除用 TextView 编写的任何文本。这是我想要的快照。

第一个图像是选择文本视图,第二个是我要删除的

【问题讨论】:

    标签: textview android


    【解决方案1】:

    有一个库可以满足您的需要。它有很酷的按钮等等。

    查看the library

    如何使用它:-

    <com.beardedhen.androidbootstrap.BootstrapButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:text="Success"
        bootstrapbutton:bb_icon_right="fa-android"
        bootstrapbutton:bb_type="success"
    />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-18
      • 1970-01-01
      • 2012-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-11
      • 1970-01-01
      相关资源
      最近更新 更多