title: RecyclerView not populating with data
body: <p>I am trying to load recyclerview with data from SQLite database contents. But it is not working</p>
  
  <p>This is what i have done</p>
  
  <p>Activity class</p>
  
  <pre><code>public class ViewMembership extends AppCompatActivity {
  private  RecyclerView recyclerView;
  private  membership_view_recycler_adapter m;
  
  private  DBHelper dbHelper;
  
  
  public List&lt;membership_recycler_model&gt; membershipList=new ArrayList&lt;&gt;();
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_view_membership);
      dbHelper=new DBHelper(this);
  
      ////////////////////////////////////////////////////////////////////////////
  
      recyclerView=(RecyclerView) findViewById(R.id.View_Membership_Recycler);
      m=new membership_view_recycler_adapter(membershipList);
      RecyclerView.LayoutManager layoutManager=new LinearLayoutManager(getApplicationContext());
      recyclerView.setLayoutManager(layoutManager);
      recyclerView.setItemAnimator(new DefaultItemAnimator());
  
      recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
  
      recyclerView.setAdapter(m);
  
      prepare_membership();
  
      //////////////////////////////////////////////////////////////////////////
  
  }
  public void  prepare_membership()
  {
      System.out.println("#######################Prepare_membership called");
      membershipList=dbHelper.membership_for_recycler_view();
     m.notifyDataSetChanged();
  }}
  </code></pre>
  
  <p>Adapter class</p>
  
  <pre><code>public class membership_view_recycler_adapter extends RecyclerView.Adapter&lt;membership_view_recycler_adapter.MyViewHolder&gt; {
  
  public class MyViewHolder extends RecyclerView.ViewHolder {
      public TextView name,region;
      public MyViewHolder(View itemView) {
          super(itemView);
          name=(TextView) itemView.findViewById(R.id.membership_name_textview);
          region=(TextView) itemView.findViewById(R.id.membership_region_textview);
      }
  }
  
  
  public membership_view_recycler_adapter(List&lt;membership_recycler_model&gt; membership_list) {
      this.membership_list = membership_list;
  }
  
  private List&lt;membership_recycler_model&gt; membership_list;
  
  
  
  @Override
  public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view= LayoutInflater.from(parent.getContext()).inflate(R.layout.membership_view_row,parent,false);
      return new MyViewHolder(view);
  }
  
  @Override
  public void onBindViewHolder(MyViewHolder holder, int position) {
      membership_recycler_model membership=membership_list.get(position);
      holder.name.setText(membership.getMembership_name());
      holder.region.setText(membership.getRegion());
  }
  
  @Override
  public int getItemCount() {
      return membership_list.size();
  }}
  </code></pre>
  
  <p>I've got no compilation errors, application is not throwing any exceptions. dbHelper.membership_for_recycler_view() is returning appropriate values. I am kinda new in Android. I did this with the help of a tutorial. What have I done wrong?</p>