private void setSpacing ( ) { final int verticalSpacing = styledAttributes . getDimensionPixelOffset ( R . styleable . PinLock_keypadVerticalSpacing , 2 ) ; final int horizontalSpacing = styledAttributes . getDimensionPixelOffset ( R . styleable . PinLock_keypadHorizontalSpacing , 2 ) ; setVerticalSpacing ( verticalSpacing ) ; setHorizontalSpacing ( horizontalSpacing ) ; }
Setting up vertical and horizontal spacing for the view