RecyclerView not updating on Fragment
<p>I have a recyclerview inside my fragment. I want to load data into it when i on my fragment's onCreateView();</p>

<p>Here's my code:</p>

<pre><code>   @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_meter_reading, container, false);

    meterReadingsRV = (RecyclerView) v.findViewById(R.id.meter_reading_recycler_view);
    adapter = new MeterReadingAdapter(getActivity(),this.readingsList);
    meterReadingsRV.setAdapter(adapter);
    meterReadingsRV.setLayoutManager(new LinearLayoutManager(getActivity()));
    loadData();
    return v;
}
</code></pre>

<p>This is my loadData method()</p>

<pre><code>  private void loadData(){
    readingsList = new Select().from(Reading.class).execute();
    adapter.notifyDataSetChanged();
}
</code></pre>

<p>Im using ActiveAndroid to load data into database.</p>

<p>My problem is when i call notifyDataSetChanged the view never gets updated.</p>

<p>Why is that so? Thanks!</p>