private void inflateLayout() {
        imageButton = new ImageButton(getContext());
        LayoutParams layoutParams = new LayoutParams(0, 0);
        layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
        addView(imageButton, layoutParams);
    }
private void inflateLayout() {
        imageButton = new ImageButton(getContext());
        LayoutParams layoutParams = new LayoutParams(0, 0);
        layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
        addView(imageButton, layoutParams);
    }
private void inflateLayout ( ) { imageButton = new ImageButton ( getContext ( ) ) ; LayoutParams layoutParams = new LayoutParams ( 0 , 0 ) ; layoutParams . addRule ( RelativeLayout . CENTER_IN_PARENT , RelativeLayout . TRUE ) ; addView ( imageButton , layoutParams ) ; }
Inflates the view's layout.
Inflates the view s layout .