6 |
import java.io.IOException; |
import java.io.IOException; |
7 |
import java.io.RandomAccessFile; |
import java.io.RandomAccessFile; |
8 |
import java.util.ArrayList; |
import java.util.ArrayList; |
9 |
import java.util.Collection; |
|
10 |
import java.util.Collections; |
import java.util.Collections; |
11 |
|
|
12 |
import android.content.Context; |
import android.content.Context; |
123 |
this.notifyDataSetChanged(); |
this.notifyDataSetChanged(); |
124 |
} |
} |
125 |
|
|
126 |
|
@Override |
127 |
public int getCount() { |
public int getCount() { |
128 |
return mImages.size(); |
return mImages.size(); |
129 |
} |
} |
130 |
|
|
131 |
|
@Override |
132 |
public Object getItem(int position) { |
public Object getItem(int position) { |
133 |
return position; |
return position; |
134 |
} |
} |
135 |
|
|
136 |
|
@Override |
137 |
public long getItemId(int position) { |
public long getItemId(int position) { |
138 |
return position; |
return position; |
139 |
} |
} |
157 |
} |
} |
158 |
} |
} |
159 |
|
|
160 |
|
@Override |
161 |
public View getView(int position, View convertView, ViewGroup parent) { |
public View getView(int position, View convertView, ViewGroup parent) { |
162 |
|
|
163 |
if (position >= mImages.size()) { |
if (position >= mImages.size()) { |