我试图使用Retrofit的响应来构建一个RecyclerView。但是,我遇到了一个问题,我的回收器显示为空白,而我的日志显示我的ArrayList中有来自网络响应的数据。PlaylistRecyclerAdapter.PlayListViewHolder>() {
// Describes an item view and its place within the RecyclerViewclass PlayListViewHolder(itemView: View
我正在制作一个安卓应用程序,它允许用户在editText中输入关键字,当他们点击提交时,下面的回收器视图将显示来自API请求的结果。我在recyclerView适配器类中有一个updateList()方法 list = savedInfo.getResult(); // get updated list from a singletonclass
notifyDataSetChanged(); // update the recyclerView 在成功</
我正在检索一个列表的数据从服务器显示到循环视图在android使用改造。但问题是,我想检查我得到的数据是否是空的,因为我想从这个检查中执行一些操作。我尝试过这段代码,但它一直只检查请求是否成功,而不是它从服务器带来的JSON数据内容。>();adapter= new Adapter(getApplicationContext(), someList);
<em