title: Recyclerview not being displayed in the Fragment
body: <p>On using androidx and recyclerview I am trying to fetch the data from an API and display it in a recyclerview.</p>
  
  <p>The emulator is able to inflate the layout with appropriate data; but when running that app in the android 5.1 physical device, it is not displaying the items stating skip layout no adapter attached and skip layout no adapter attached both at the same time.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>recyclerView = (RecyclerView)view.findViewById(R.id.newsList);
  recyclerView.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
  
  
  // Inflate the layout for this fragment
  ArticleService articleService = ServiceGenerator.createService(ArticleService.class);
  articleService.getLatestNewsHeadlines(CONSTANTS.COUNTRY_US, CONSTANTS.CATEGORY_BUSINESS, CONSTANTS.API_KEY)
          .enqueue(new Callback&lt;NewsDataModel&gt;() {
              @SuppressLint("WrongConstant")
              @Override
              public void onResponse(Call&lt;NewsDataModel&gt; call, Response&lt;NewsDataModel&gt; response) {
                  Log.e("Error",response.body().getArticles().get(0).getTitle());
                  articleList=response.body().getArticles();
                  newsRecyclerAdapter = new NewsRecyclerAdapter(getContext(),articleList);
                  recyclerView.setAdapter(newsRecyclerAdapter);
              }
  
              @Override
              public void onFailure(Call&lt;NewsDataModel&gt; call, Throwable t) {
                  Toast.makeText(getContext(), "There was some error"+t.toString(), Toast.LENGTH_SHORT).show();
                  Log.e("Error",t.toString());
              }
          });
  </code></pre>