简体   繁体   English

如何在TextView更改时刷新Recycler View

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

I have a Recycler View list. 我有一个“回收者视图”列表。 I want to refesh the Recycler View on TextView value change 我想刷新TextView值更改上的Recycler View

Did you try? 你试过了吗? :

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