簡體   English   中英

如何在TextView更改時刷新Recycler View

[英]How to refresh the Recycler View on TextView change

我有一個“回收者視圖”列表。 我想刷新TextView值更改上的Recycler View

你試過了嗎?

textMessage = (EditText)findViewById(R.id.textMessage);
textMessage.addTextChangedListener(new TextWatcher(){
    public void afterTextChanged(Editable s) {

        //Refresh your view, make network calls to server or something
  }
});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM