【问题标题】:How to add Cross button with item adding in EditText如何在EditText中添加带有项目的十字按钮
【发布时间】:2016-04-06 08:26:42
【问题描述】:

我正在尝试复制 SMS 应用程序提供的功能,添加联系人选项以取消它。这叫什么以及如何为Android应用程序实现。

【问题讨论】:

标签: android input


【解决方案1】:

您可以将其称为 TagView 或 ChipsView。我在这里分享一些图书馆链接,请查看:

https://github.com/loopeer/MultiTextTagView
https://github.com/splitwise/TokenAutoComplete
https://github.com/kpbird/chips-edittext-library
https://github.com/klinker41/android-chips
https://github.com/whilu/AndroidTagView

因为你想要交叉按钮,你需要修改它的项目布局并给点击监听器,这一切都取决于你的逻辑。

【讨论】:

    猜你喜欢
    • 2016-10-28
    • 2017-02-06
    • 2012-07-14
    • 1970-01-01
    • 1970-01-01
    • 2021-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多