/[projects]/android/Side9/src/dk/thoerup/side9/ImageAdapter.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/ImageAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1223 by torben, Wed Feb 9 07:14:53 2011 UTC revision 1224 by torben, Wed Feb 9 17:39:54 2011 UTC
# Line 6  import java.io.FilenameFilter; Line 6  import java.io.FilenameFilter;
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;
# Line 123  public class ImageAdapter extends BaseAd Line 123  public class ImageAdapter extends BaseAd
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      }      }
# Line 155  public class ImageAdapter extends BaseAd Line 157  public class ImageAdapter extends BaseAd
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()) {

Legend:
Removed from v.1223  
changed lines
  Added in v.1224

  ViewVC Help
Powered by ViewVC 1.1.20