Code example for View

Methods: getTagsetId

     * @param text The text of the button 
     * @param position The position withion the list 
     * @return The converted view 
    public static View convertButton(View convertView, String text, int position) {
        if (((String) convertView.getTag()).equals("button")) {
            ((Button) convertView).setText(text);
            return convertView;
        } else { 
            return null; 
     * Create a text view ready to be a list item. 
     * @param position      The position within the list. 
     * @param context       The context. 
     * @param text          The text to display