ExampleApp/src/com/altinn/apps/fisher/ui/component/RTextView.java
/**
	 * This method loads appropriate font and set it 
	 * @param context
	 * @param attrs
	 */
This method loads appropriate font and set it
@param context
@param attrs
This method loads appropriate font and set it @param context @param attrs
private void parseAttributes(Context context, AttributeSet attrs) {
	    TypedArray values = context.obtainStyledAttributes(attrs, R.styleable.RTextView);
	    int typefaceValue = values.getInt(R.styleable.RTextView_typeface, 0);
	    values.recycle();
	    setTypeface(CacheManager.getInstance().getTypeFace(typefaceValue));
	}
private void parseAttributes ( Context context , AttributeSet attrs ) { TypedArray values = context . obtainStyledAttributes ( attrs , R . styleable . RTextView ) ; int typefaceValue = values . getInt ( R . styleable . RTextView_typeface , 0 ) ; values . recycle ( ) ; setTypeface ( CacheManager . getInstance ( ) . getTypeFace ( typefaceValue ) ) ; }
This method loads appropriate font and set it
 @param context
 @param attrs
This method loads appropriate font and set it @param context @param attrs