为啥我有这几句还是报没有附加适配器跳过布局的错误

 private void showData() {
   CartProvider cartProvider = CartProvider.getInstance();
   List<GoodsBean> datas = cartProvider.getDataFromLocal();
   if (datas != null && datas.size() > 0) {
       tvShopcartEdit.setVisibility(View.VISIBLE);
       tvShopcartEdit.setTag(ACTION_EDIT);
       adapter = new ShopCartAdapter(ShoppingCartActivity.this, datas, tvShopcartTotal, cartProvider, checkboxAll, cbAll);
       recyclerview.setLayoutManager(new LinearLayoutManager(ShoppingCartActivity.this));
       recyclerview.setAdapter(adapter);
       ll_empty_shopcart.setVisibility(View.GONE);
       llCheckAll.setVisibility(View.VISIBLE);

******************************************************************************************************************

01-05 06:48:04.337 4970-4970/com.weather.com.welcomeactivity E/RecyclerView: No adapter attached; skipping layout

qq_Linjj蓝极光辉_04362138
浏览 1057回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android