In chat App how to implement Typing indicator that someone is Typing just like whats-app or Messenger in Android Studio using Firebase
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
To achieve this, you need add a new field in your Firebase database named:
typing
with the default value offalse
. Then useaddTextChangedListener()
method on yourEditText
to actually see when someone types a message. When someone types something,onTextChanged()
method is triggered. Now change the value oftyping
from false totrue
. After this,addValueEventListener
to see when the value is changed. If the value is true, then display that message in your chat room. So, i suggest you using the following code: