Code example for Map

Methods: get

0
          return mNames.size();
      } 
 
      @Override 
      public Intent getItem(int position) {
          return mIntents.get(mNames.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 (convertView == null) {
              tv = (TextView) LayoutInflater.from(SampleList.this).inflate(android.R.layout.simple_list_item_1, parent, false);
          } 
          tv.setText(mNames.get(position));
          return tv;