如何在TextView更改时刷新Recycler View

时间:2015-04-02 18:11:57

标签: android android-recyclerview

我有一个Recycler View列表。我想在TextView值更改

上刷新Recyclerview

1 个答案:

答案 0 :(得分:1)

你尝试过吗? :

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
  }
});