小编J.R*_*J.R的帖子

ExpandableListView.getAdapter()返回android.widget.ExpandableListConnector

在我的项目中,我试图BaseExpandableListAdapter通过调用getAdapter()方法访问设置为ExpandableListView 的adapter().但getAdapter()回报android.widget.ExpandableListConnector.

这是我的代码

mExpandableListView.setAdapter(new ItemsExpListAdapter(navigationDrawerItems, getActivity()));
Log.e("adapter" , mExpandableListView.getAdapter().getClass().toString());
Run Code Online (Sandbox Code Playgroud)

我正在这样的logcat

在此输入图像描述

android expandablelistview expandablelistadapter

4
推荐指数
1
解决办法
805
查看次数

毕加索用HTTP帖子加载图片

我的API为每个HTTP请求都有一些验证机制.其中一个端点具有使用HTTP post方法加载图像的功能.post请求体将包含一个从服务器端验证的JSON对象.

为此我需要在http post请求体上包含这样的JSON.

{
    "session_id": "someId",
    "image_id": "some_id"
}
Run Code Online (Sandbox Code Playgroud)

我怎么能和毕加索一起做这件事?

android json http-post image-loading picasso

4
推荐指数
1
解决办法
2857
查看次数