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
相关分类