小编Suy*_*kam的帖子

如何在每个listview项目中显示进度条?

请帮我在listview项目中显示进度对话框.

public class DealerSubCatListAdapter extends BaseAdapter {
        private Context context;
        private ArrayList<Image> Image;
        private LayoutInflater inflater = null;

        public DealerSubCatListAdapter(Context context, ArrayList<Image> Image) {

            this.context = context;
            this.Image = Image;
            inflater = (LayoutInflater) context
                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);


            notifyDataSetChanged();

        }

        @Override
        public int getCount() {
            return Image.size();
        }

        @Override
        public Object getItem(int position) {
            return position;
        }

        @Override
        public long getItemId(int position) {
            return position;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            View view = null;
            if (convertView == …
Run Code Online (Sandbox Code Playgroud)

android android-listview progress-bar

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-listview ×1

progress-bar ×1