gpt4 book ai didi

textview - 如何在它的末尾创建带有 cross(x) 按钮的 TextView?

转载 作者:行者123 更新时间:2023-11-29 17:53:24 26 4
gpt4 key购买 nike

是否有像 TextView 这样包含十字按钮的小部件,或者是否有自动创建它的 TextView 的任何属性?我想要十字按钮删除在 TextView 中写入的任何文本。这是我想要的内容的快照。

第一张图片选择了 TextView ,第二张图片我想删除

最佳答案

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

查看 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"
/>

关于textview - 如何在它的末尾创建带有 cross(x) 按钮的 TextView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21362670/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com