Code example for View

Methods: findViewById

0
            this.viewId = viewId;
        } 
 
        final void update(View parent) {
 
            View view = parent.findViewById(viewId);
            if (view == null) {
                throw new NullPointerException("couldn't find view " + viewId
                        + " (" + Robolectric.getResourceLoader(parent.getContext()).getNameForId(viewId) + ")");
            } 
            doUpdate(view);
        } 
 
        abstract void doUpdate(View view);
    } 
}