Code example for Activity

Methods: getLayoutInflater

0
 
    private class ImageAdapter extends BaseAdapter implements ListAdapter, SpinnerAdapter {
        private LayoutInflater mLayoutInflater;
 
        ImageAdapter(Activity activity) {
            mLayoutInflater = activity.getLayoutInflater();
        } 
 
        public int getCount() { 
            return mThumbs.size();
        } 
 
        public Object getItem(int position) {
            return position;
        } 
 
        public long getItemId(int position) {
            return position;
        } 
 
        public View getView(int position, View convertView, ViewGroup parent) {