Code example for ArrayList

Methods: get

0
            return mItems.size();
        } 
 
        @Override 
        public ActivityInfo getItem(int position) {
            return mItems.get(position);
        } 
 
        @Override 
        public long getItemId(int position) {
            return position;
        } 
 
        @Override 
        public View getView(int position, View convertView, ViewGroup parent) {
            TextView tv = (TextView) convertView;
            if (tv == null) {
                tv = (TextView) mInflater.inflate(android.R.layout.simple_list_item_1, parent,
                        false); 
            } 
            ActivityInfo item = getItem(position);