public class CategoryAdapter extends BaseAdapter {
Context context;
ArrayList<ModelCategory> model;
LayoutInflater layoutInflater;
public CategoryAdapter(Activity activity, ArrayList<ModelCategory> model) {
this.model = model;
this.context = activity;
}
@Override
public int getCount() {
return model.size();
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewHolder = null;
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (convertView == null) {
viewHolder = new ViewHolder();
convertView = …Run Code Online (Sandbox Code Playgroud) 我想在我的应用程序中实现像聊天这样的环聊.我一直在使用opentok库.在那里我见过libopentok.so文件.任何人都可以告诉我libopentok.so文件的确切用法是什么.
在2.2到2.3的更新后,我无法使用android studio运行我的项目.当我尝试运行我的项目时,我总是收到"无法找到adb"这样的错误.
拍我一个合适的解决方案来解决这个问题.我尝试了很多方法,但我无法解决这个问题.