private void inflateView ( ) { parentView = createParentView ( ) ; view = createView ( ) ; view . setOnFocusChangeListener ( createFocusChangeListener ( ) ) ; view . setBackgroundResource ( R . drawable . validateable_view_background ) ; setLineColor ( getAccentColor ( ) ) ; if ( parentView != null ) { parentView . addView ( view , LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT ) ; addView ( parentView , LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT ) ; } else { addView ( view , LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT ) ; } }
Inflates the view whose value should be able to be validated .