Code example for ViewGroup

Methods: getContext

0
 
    @Override 
    protected View createView(int position, ViewGroup parent, int desiredHeight) {
        if (position == 0) {
            return ListItemFactory.button( 
                    position, parent.getContext(), getValueAtPosition(position), desiredHeight);
        } else { 
            return super.createView(position, parent, desiredHeight);
        } 
    } 
}