Code example for InflateException

0
	private void init(Context context, AttributeSet attrs) {
		FontIconDrawable drawable = new FontIconDrawable();
		try { 
			drawable.inflate(context.getResources(), null, attrs);
		} catch (XmlPullParserException e) {
			throw new InflateException(e);
		} catch (IOException e) {
			throw new InflateException(e);
		} 
		setImageDrawable(drawable);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE