我如何实现一个Facebook Messenger的/谷歌视频群聊就像布局,Android上的搜索栏preVIEW选定的项目? [英] How do I achieve a Facebook Messenger/ Google Hangouts like layout to preview selected items in search bar on ANDROID?

查看:320
本文介绍了我如何实现一个Facebook Messenger的/谷歌视频群聊就像布局,Android上的搜索栏preVIEW选定的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想创建可以从截图中可以很好地说明什么。

Basically what I want to create can be best illustrated from a screenshot.

我的人就像FB Messenger应用列表视图。我想为我的用户有这样的截图所示的一个搜索栏的能力。
它应具有以下性质:

I have a listview of people just like FB Messenger app. I want the ability for my users to have a search bar like the one shown in the screenshots. It should have the following properties:

1)搜索栏应美元在列表视图中选择人p $ PVIEW名

1) Search bar should preview names of people selected in the list view

2)人们可以通过点击Backspace任何名义在preVIEW搜索栏中取消选择

2) People can be de-selected by hitting backspace on any name in the preview search bar

3)搜索栏应能过滤人底部列表的用户类型。

3) The search bar should be able to filter the bottom list of people as the user types.

我有PROPERT 3的解决方案),但我茫然不知其他两个。
请帮忙!!!

I have a solution for propert 3) but I am clueless about the other two. Please HELP!!!

推荐答案

您应该检查<一href=\"https://android.googlesource.com/platform/packages/apps/Mms/+/refs/heads/master/src/com/android/mms/ui/RecipientsEditor.java\"相对=nofollow>这个。

本类使用 TextWatcher ,的 SpannableString ,的 AutoCompleteTextView 和的注解

This class uses combination of TextWatcher, SpannableString, AutoCompleteTextView and Annotations.

这篇关于我如何实现一个Facebook Messenger的/谷歌视频群聊就像布局,Android上的搜索栏preVIEW选定的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆