How to refresh data in a RecyclerView from a PagedListAdapter?












0















Using the following lines of code, I can to display data from a backend server in a RecyclerView using PagedListAdapter.



movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);


I created this method:



private void movieSearch(String searchText) {
globalSearch = searchText;
movieViewModel.replaceSubscription(this);
movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);
}


Which is called from inside onQueryTextChange() to display the results of the search but for some reasons the data in my RecyclerView is not refreshed.



This is also my MovieViewModel class:



public class MovieViewModel extends ViewModel {
LiveData<PagedList<ApiResponse.Movie>> moviePagedList;

public MovieViewModel() {
MovieDataSourceFactory movieDataSourceFactory = new MovieDataSourceFactory(search);
PagedList.Config config = new PagedList.Config.Builder().setEnablePlaceholders(false).setPageSize(20).build();
moviePagedList = new LivePagedListBuilder<>(movieDataSourceFactory, config).build();
}

void replaceSubscription(LifecycleOwner lifecycleOwner) {
moviePagedList.removeObservers(lifecycleOwner);
}
}


I everytime I search something, I need to get freash data. How to solve this?










share|improve this question























  • adapter.notifyDataSetChanged();

    – HB.
    Nov 21 '18 at 13:46











  • @HB. Thanks but it doesn't work with PagedListAdapter :(.

    – Johans Bormman
    Nov 21 '18 at 13:52











  • stackoverflow.com/a/49193372/5550161

    – HB.
    Nov 21 '18 at 13:57











  • I did it with 2 ArrayList, one for filtering and one to display all the items.

    – HB.
    Nov 21 '18 at 13:59











  • @HB. Let me try with 2 ArrayList.

    – Johans Bormman
    Nov 21 '18 at 14:00
















0















Using the following lines of code, I can to display data from a backend server in a RecyclerView using PagedListAdapter.



movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);


I created this method:



private void movieSearch(String searchText) {
globalSearch = searchText;
movieViewModel.replaceSubscription(this);
movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);
}


Which is called from inside onQueryTextChange() to display the results of the search but for some reasons the data in my RecyclerView is not refreshed.



This is also my MovieViewModel class:



public class MovieViewModel extends ViewModel {
LiveData<PagedList<ApiResponse.Movie>> moviePagedList;

public MovieViewModel() {
MovieDataSourceFactory movieDataSourceFactory = new MovieDataSourceFactory(search);
PagedList.Config config = new PagedList.Config.Builder().setEnablePlaceholders(false).setPageSize(20).build();
moviePagedList = new LivePagedListBuilder<>(movieDataSourceFactory, config).build();
}

void replaceSubscription(LifecycleOwner lifecycleOwner) {
moviePagedList.removeObservers(lifecycleOwner);
}
}


I everytime I search something, I need to get freash data. How to solve this?










share|improve this question























  • adapter.notifyDataSetChanged();

    – HB.
    Nov 21 '18 at 13:46











  • @HB. Thanks but it doesn't work with PagedListAdapter :(.

    – Johans Bormman
    Nov 21 '18 at 13:52











  • stackoverflow.com/a/49193372/5550161

    – HB.
    Nov 21 '18 at 13:57











  • I did it with 2 ArrayList, one for filtering and one to display all the items.

    – HB.
    Nov 21 '18 at 13:59











  • @HB. Let me try with 2 ArrayList.

    – Johans Bormman
    Nov 21 '18 at 14:00














0












0








0








Using the following lines of code, I can to display data from a backend server in a RecyclerView using PagedListAdapter.



movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);


I created this method:



private void movieSearch(String searchText) {
globalSearch = searchText;
movieViewModel.replaceSubscription(this);
movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);
}


Which is called from inside onQueryTextChange() to display the results of the search but for some reasons the data in my RecyclerView is not refreshed.



This is also my MovieViewModel class:



public class MovieViewModel extends ViewModel {
LiveData<PagedList<ApiResponse.Movie>> moviePagedList;

public MovieViewModel() {
MovieDataSourceFactory movieDataSourceFactory = new MovieDataSourceFactory(search);
PagedList.Config config = new PagedList.Config.Builder().setEnablePlaceholders(false).setPageSize(20).build();
moviePagedList = new LivePagedListBuilder<>(movieDataSourceFactory, config).build();
}

void replaceSubscription(LifecycleOwner lifecycleOwner) {
moviePagedList.removeObservers(lifecycleOwner);
}
}


I everytime I search something, I need to get freash data. How to solve this?










share|improve this question














Using the following lines of code, I can to display data from a backend server in a RecyclerView using PagedListAdapter.



movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);


I created this method:



private void movieSearch(String searchText) {
globalSearch = searchText;
movieViewModel.replaceSubscription(this);
movieViewModel = ViewModelProviders.of(this).get(MovieViewModel.class);
MovieAdapter adapter = new MovieAdapter(this);
movieViewModel.moviePagedList.observe(this, adapter::submitList);
recyclerView.setAdapter(adapter);
}


Which is called from inside onQueryTextChange() to display the results of the search but for some reasons the data in my RecyclerView is not refreshed.



This is also my MovieViewModel class:



public class MovieViewModel extends ViewModel {
LiveData<PagedList<ApiResponse.Movie>> moviePagedList;

public MovieViewModel() {
MovieDataSourceFactory movieDataSourceFactory = new MovieDataSourceFactory(search);
PagedList.Config config = new PagedList.Config.Builder().setEnablePlaceholders(false).setPageSize(20).build();
moviePagedList = new LivePagedListBuilder<>(movieDataSourceFactory, config).build();
}

void replaceSubscription(LifecycleOwner lifecycleOwner) {
moviePagedList.removeObservers(lifecycleOwner);
}
}


I everytime I search something, I need to get freash data. How to solve this?







android android-recyclerview android-pageradapter android-paging android-paging-library






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 '18 at 13:20









Johans BormmanJohans Bormman

10910




10910













  • adapter.notifyDataSetChanged();

    – HB.
    Nov 21 '18 at 13:46











  • @HB. Thanks but it doesn't work with PagedListAdapter :(.

    – Johans Bormman
    Nov 21 '18 at 13:52











  • stackoverflow.com/a/49193372/5550161

    – HB.
    Nov 21 '18 at 13:57











  • I did it with 2 ArrayList, one for filtering and one to display all the items.

    – HB.
    Nov 21 '18 at 13:59











  • @HB. Let me try with 2 ArrayList.

    – Johans Bormman
    Nov 21 '18 at 14:00



















  • adapter.notifyDataSetChanged();

    – HB.
    Nov 21 '18 at 13:46











  • @HB. Thanks but it doesn't work with PagedListAdapter :(.

    – Johans Bormman
    Nov 21 '18 at 13:52











  • stackoverflow.com/a/49193372/5550161

    – HB.
    Nov 21 '18 at 13:57











  • I did it with 2 ArrayList, one for filtering and one to display all the items.

    – HB.
    Nov 21 '18 at 13:59











  • @HB. Let me try with 2 ArrayList.

    – Johans Bormman
    Nov 21 '18 at 14:00

















adapter.notifyDataSetChanged();

– HB.
Nov 21 '18 at 13:46





adapter.notifyDataSetChanged();

– HB.
Nov 21 '18 at 13:46













@HB. Thanks but it doesn't work with PagedListAdapter :(.

– Johans Bormman
Nov 21 '18 at 13:52





@HB. Thanks but it doesn't work with PagedListAdapter :(.

– Johans Bormman
Nov 21 '18 at 13:52













stackoverflow.com/a/49193372/5550161

– HB.
Nov 21 '18 at 13:57





stackoverflow.com/a/49193372/5550161

– HB.
Nov 21 '18 at 13:57













I did it with 2 ArrayList, one for filtering and one to display all the items.

– HB.
Nov 21 '18 at 13:59





I did it with 2 ArrayList, one for filtering and one to display all the items.

– HB.
Nov 21 '18 at 13:59













@HB. Let me try with 2 ArrayList.

– Johans Bormman
Nov 21 '18 at 14:00





@HB. Let me try with 2 ArrayList.

– Johans Bormman
Nov 21 '18 at 14:00












3 Answers
3






active

oldest

votes


















1














With this answer I will show you how I did filtering of items in my Adapter. Not answering your question directly, but rather giving you another solution.



First of, I have a EditText in my ToolBar called m_app_bar_title_txt, In my Activity I call the following:



//I'm using TextWatcher to see when text changes
m_app_bar_title_txt.addTextChangedListener(new TextWatcher() {

@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}

@Override
public void afterTextChanged(Editable s) {
//If the text changes I call the following method
//Passing the text to the metod
filter(s.toString());
}
});

private void filter(String s) {
ArrayList<ScoresData> aData = new ArrayList<>();
for (ScoresData mData : data){
if (mData.textPlayerName.toLowerCase().contains(s.toLowerCase())){
aData.add(mData);
}
}
//this method is in my RecyclerView.Adapter class
//I will provide this below
mAdapter.filterList(aData);

}


mAdapter.filterList(aData); passes the filtered ArrayList to the following method inside my RecyclerView.Adapter:



public void filterList(ArrayList<ScoresData> filteredList){
//Changing the original ArrayList -> data to filteredList
//Then notifying that the list has changed
data = filteredList;
notifyDataSetChanged();
}


If you where wondering what ScoresData looks like....



public class ScoresData {
public String mImage;
public String textPlayerName;
public String textPos;
public String textTotalScore;
public String textPlayed;
public String textRounds;
}


I hope this helps..






share|improve this answer
























  • As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

    – Johans Bormman
    Nov 21 '18 at 17:22













  • @JohansBormman you are welcome

    – HB.
    Nov 21 '18 at 17:23











  • @JohansBormman Please consider accepting my answer.

    – HB.
    Nov 22 '18 at 13:47



















1














This problem can be solved by calling



movieViewModel.moviePagedList.dataSource.invalidate()


in your activity/fragment.






share|improve this answer

































    0














    PagedListAdapter is a subclass of android.support.v7.widget.RecyclerView.Adapter so a call to notifyDataSetChanged() will do.






    share|improve this answer
























    • I know that but it doesn't work. Do you have any other idea?

      – Johans Bormman
      Nov 21 '18 at 15:43











    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412971%2fhow-to-refresh-data-in-a-recyclerview-from-a-pagedlistadapter%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    With this answer I will show you how I did filtering of items in my Adapter. Not answering your question directly, but rather giving you another solution.



    First of, I have a EditText in my ToolBar called m_app_bar_title_txt, In my Activity I call the following:



    //I'm using TextWatcher to see when text changes
    m_app_bar_title_txt.addTextChangedListener(new TextWatcher() {

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    }

    @Override
    public void afterTextChanged(Editable s) {
    //If the text changes I call the following method
    //Passing the text to the metod
    filter(s.toString());
    }
    });

    private void filter(String s) {
    ArrayList<ScoresData> aData = new ArrayList<>();
    for (ScoresData mData : data){
    if (mData.textPlayerName.toLowerCase().contains(s.toLowerCase())){
    aData.add(mData);
    }
    }
    //this method is in my RecyclerView.Adapter class
    //I will provide this below
    mAdapter.filterList(aData);

    }


    mAdapter.filterList(aData); passes the filtered ArrayList to the following method inside my RecyclerView.Adapter:



    public void filterList(ArrayList<ScoresData> filteredList){
    //Changing the original ArrayList -> data to filteredList
    //Then notifying that the list has changed
    data = filteredList;
    notifyDataSetChanged();
    }


    If you where wondering what ScoresData looks like....



    public class ScoresData {
    public String mImage;
    public String textPlayerName;
    public String textPos;
    public String textTotalScore;
    public String textPlayed;
    public String textRounds;
    }


    I hope this helps..






    share|improve this answer
























    • As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

      – Johans Bormman
      Nov 21 '18 at 17:22













    • @JohansBormman you are welcome

      – HB.
      Nov 21 '18 at 17:23











    • @JohansBormman Please consider accepting my answer.

      – HB.
      Nov 22 '18 at 13:47
















    1














    With this answer I will show you how I did filtering of items in my Adapter. Not answering your question directly, but rather giving you another solution.



    First of, I have a EditText in my ToolBar called m_app_bar_title_txt, In my Activity I call the following:



    //I'm using TextWatcher to see when text changes
    m_app_bar_title_txt.addTextChangedListener(new TextWatcher() {

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    }

    @Override
    public void afterTextChanged(Editable s) {
    //If the text changes I call the following method
    //Passing the text to the metod
    filter(s.toString());
    }
    });

    private void filter(String s) {
    ArrayList<ScoresData> aData = new ArrayList<>();
    for (ScoresData mData : data){
    if (mData.textPlayerName.toLowerCase().contains(s.toLowerCase())){
    aData.add(mData);
    }
    }
    //this method is in my RecyclerView.Adapter class
    //I will provide this below
    mAdapter.filterList(aData);

    }


    mAdapter.filterList(aData); passes the filtered ArrayList to the following method inside my RecyclerView.Adapter:



    public void filterList(ArrayList<ScoresData> filteredList){
    //Changing the original ArrayList -> data to filteredList
    //Then notifying that the list has changed
    data = filteredList;
    notifyDataSetChanged();
    }


    If you where wondering what ScoresData looks like....



    public class ScoresData {
    public String mImage;
    public String textPlayerName;
    public String textPos;
    public String textTotalScore;
    public String textPlayed;
    public String textRounds;
    }


    I hope this helps..






    share|improve this answer
























    • As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

      – Johans Bormman
      Nov 21 '18 at 17:22













    • @JohansBormman you are welcome

      – HB.
      Nov 21 '18 at 17:23











    • @JohansBormman Please consider accepting my answer.

      – HB.
      Nov 22 '18 at 13:47














    1












    1








    1







    With this answer I will show you how I did filtering of items in my Adapter. Not answering your question directly, but rather giving you another solution.



    First of, I have a EditText in my ToolBar called m_app_bar_title_txt, In my Activity I call the following:



    //I'm using TextWatcher to see when text changes
    m_app_bar_title_txt.addTextChangedListener(new TextWatcher() {

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    }

    @Override
    public void afterTextChanged(Editable s) {
    //If the text changes I call the following method
    //Passing the text to the metod
    filter(s.toString());
    }
    });

    private void filter(String s) {
    ArrayList<ScoresData> aData = new ArrayList<>();
    for (ScoresData mData : data){
    if (mData.textPlayerName.toLowerCase().contains(s.toLowerCase())){
    aData.add(mData);
    }
    }
    //this method is in my RecyclerView.Adapter class
    //I will provide this below
    mAdapter.filterList(aData);

    }


    mAdapter.filterList(aData); passes the filtered ArrayList to the following method inside my RecyclerView.Adapter:



    public void filterList(ArrayList<ScoresData> filteredList){
    //Changing the original ArrayList -> data to filteredList
    //Then notifying that the list has changed
    data = filteredList;
    notifyDataSetChanged();
    }


    If you where wondering what ScoresData looks like....



    public class ScoresData {
    public String mImage;
    public String textPlayerName;
    public String textPos;
    public String textTotalScore;
    public String textPlayed;
    public String textRounds;
    }


    I hope this helps..






    share|improve this answer













    With this answer I will show you how I did filtering of items in my Adapter. Not answering your question directly, but rather giving you another solution.



    First of, I have a EditText in my ToolBar called m_app_bar_title_txt, In my Activity I call the following:



    //I'm using TextWatcher to see when text changes
    m_app_bar_title_txt.addTextChangedListener(new TextWatcher() {

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    }

    @Override
    public void afterTextChanged(Editable s) {
    //If the text changes I call the following method
    //Passing the text to the metod
    filter(s.toString());
    }
    });

    private void filter(String s) {
    ArrayList<ScoresData> aData = new ArrayList<>();
    for (ScoresData mData : data){
    if (mData.textPlayerName.toLowerCase().contains(s.toLowerCase())){
    aData.add(mData);
    }
    }
    //this method is in my RecyclerView.Adapter class
    //I will provide this below
    mAdapter.filterList(aData);

    }


    mAdapter.filterList(aData); passes the filtered ArrayList to the following method inside my RecyclerView.Adapter:



    public void filterList(ArrayList<ScoresData> filteredList){
    //Changing the original ArrayList -> data to filteredList
    //Then notifying that the list has changed
    data = filteredList;
    notifyDataSetChanged();
    }


    If you where wondering what ScoresData looks like....



    public class ScoresData {
    public String mImage;
    public String textPlayerName;
    public String textPos;
    public String textTotalScore;
    public String textPlayed;
    public String textRounds;
    }


    I hope this helps..







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 21 '18 at 17:19









    HB.HB.

    1,5892923




    1,5892923













    • As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

      – Johans Bormman
      Nov 21 '18 at 17:22













    • @JohansBormman you are welcome

      – HB.
      Nov 21 '18 at 17:23











    • @JohansBormman Please consider accepting my answer.

      – HB.
      Nov 22 '18 at 13:47



















    • As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

      – Johans Bormman
      Nov 21 '18 at 17:22













    • @JohansBormman you are welcome

      – HB.
      Nov 21 '18 at 17:23











    • @JohansBormman Please consider accepting my answer.

      – HB.
      Nov 22 '18 at 13:47

















    As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

    – Johans Bormman
    Nov 21 '18 at 17:22







    As you said, is not answering my question but it helped me solve it. I finally did it with your idea and the answer from this post. Voted up! Thanks a lot!

    – Johans Bormman
    Nov 21 '18 at 17:22















    @JohansBormman you are welcome

    – HB.
    Nov 21 '18 at 17:23





    @JohansBormman you are welcome

    – HB.
    Nov 21 '18 at 17:23













    @JohansBormman Please consider accepting my answer.

    – HB.
    Nov 22 '18 at 13:47





    @JohansBormman Please consider accepting my answer.

    – HB.
    Nov 22 '18 at 13:47













    1














    This problem can be solved by calling



    movieViewModel.moviePagedList.dataSource.invalidate()


    in your activity/fragment.






    share|improve this answer






























      1














      This problem can be solved by calling



      movieViewModel.moviePagedList.dataSource.invalidate()


      in your activity/fragment.






      share|improve this answer




























        1












        1








        1







        This problem can be solved by calling



        movieViewModel.moviePagedList.dataSource.invalidate()


        in your activity/fragment.






        share|improve this answer















        This problem can be solved by calling



        movieViewModel.moviePagedList.dataSource.invalidate()


        in your activity/fragment.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 21 at 9:56

























        answered Jan 21 at 9:44









        Hussnain HaidarHussnain Haidar

        370413




        370413























            0














            PagedListAdapter is a subclass of android.support.v7.widget.RecyclerView.Adapter so a call to notifyDataSetChanged() will do.






            share|improve this answer
























            • I know that but it doesn't work. Do you have any other idea?

              – Johans Bormman
              Nov 21 '18 at 15:43
















            0














            PagedListAdapter is a subclass of android.support.v7.widget.RecyclerView.Adapter so a call to notifyDataSetChanged() will do.






            share|improve this answer
























            • I know that but it doesn't work. Do you have any other idea?

              – Johans Bormman
              Nov 21 '18 at 15:43














            0












            0








            0







            PagedListAdapter is a subclass of android.support.v7.widget.RecyclerView.Adapter so a call to notifyDataSetChanged() will do.






            share|improve this answer













            PagedListAdapter is a subclass of android.support.v7.widget.RecyclerView.Adapter so a call to notifyDataSetChanged() will do.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 21 '18 at 14:14









            ThemelisThemelis

            859618




            859618













            • I know that but it doesn't work. Do you have any other idea?

              – Johans Bormman
              Nov 21 '18 at 15:43



















            • I know that but it doesn't work. Do you have any other idea?

              – Johans Bormman
              Nov 21 '18 at 15:43

















            I know that but it doesn't work. Do you have any other idea?

            – Johans Bormman
            Nov 21 '18 at 15:43





            I know that but it doesn't work. Do you have any other idea?

            – Johans Bormman
            Nov 21 '18 at 15:43


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412971%2fhow-to-refresh-data-in-a-recyclerview-from-a-pagedlistadapter%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents