List of usage examples for android.content.res TypedArray getDrawable
@Nullable public Drawable getDrawable(@StyleableRes int index)
From source file:com.ayuget.redface.ui.view.ScrimInsetsScrollView.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//from ww w.ja va 2 s.com } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForegroundCompat); a.recycle(); setWillNotDraw(true); }
From source file:com.mazyoona.customViews.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//ww w . j ava 2 s .co m } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForegrounds); a.recycle(); setWillNotDraw(true); }
From source file:ar.worq.microturistas.view.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;/* w ww . j a va2 s. c o m*/ } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_scrimInsetForeground); a.recycle(); setWillNotDraw(true); }
From source file:com.CSUF.customViews.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//from w w w . jav a 2 s . c om } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForeground1); a.recycle(); setWillNotDraw(true); }
From source file:com.dict.hm.dictionary.lib.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;/*from w w w .j a v a2s.co m*/ } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_mInsetForeground); a.recycle(); setWillNotDraw(true); }
From source file:com.ftinc.kit.widget.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//from w ww . jav a2s.com } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_siv_insetForeground); a.recycle(); setWillNotDraw(true); }
From source file:com.geecko.QuickLyric.view.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;/*from w w w. ja v a2s . c o m*/ } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetFG); a.recycle(); setWillNotDraw(true); }
From source file:com.huwei.view.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//ww w . ja v a 2 s .c o m } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_SIinsetForeground); a.recycle(); setWillNotDraw(true); }
From source file:com.initapp.vidmateguide.widget.ScrimInsetsScrollView.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;//ww w .j a va2 s.co m } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForegroundScrim); a.recycle(); setWillNotDraw(true); }
From source file:com.ophio.androidl.widget.ScrimInsetsFrameLayout.java
private void init(Context context, AttributeSet attrs, int defStyle) { final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ScrimInsetsView, defStyle, 0); if (a == null) { return;/*from ww w . j av a 2s . co m*/ } mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForegroundAttr); a.recycle(); setWillNotDraw(true); }