Code example for TwoLineListItem

Methods: getText1, getText2

0
        } else { 
            view = (TwoLineListItem) convertView;
        } 
  
        // Set value for the first text field 
        if (view.getText1() != null) {
            view.getText1().setText(c.getName());
        } 
  
        // set value for the second text field 
        if (view.getText2() != null) {
            view.getText2().setText(c.getNumber());
        } 
  
        return view;
    } 
  
    public int getPositionForSection(int section) {
        String letter = sections[section];
        return alphaIndexer.get(letter);
    }