Code example for ViewGroup

Methods: getContext

0
            } 
 
            public View getView(View convertView, ViewGroup parent) {
                if (mView == null) {
                    LayoutInflater inflater = (LayoutInflater)
                            parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                    mView = inflater.inflate(mLayoutResourceId, parent, false);
                    initView(mView);
                } 
                updateView(mView);
                return mView;
            } 
 
            protected void initView(View view) {
            } 
 
            protected void updateView(View view) {
            } 
        } 
 
        private static class Heading extends Item {