List of usage examples for android.view View EMPTY_STATE_SET
null EMPTY_STATE_SET
To view the source code for android.view View EMPTY_STATE_SET.
Click Source Link
From source file:com.filemanager.free.ui.views.FastScroller.java
public void setPressedHandleColor(int i) { handle.setColorFilter(i);/*from ww w . j a v a2s.c o m*/ StateListDrawable stateListDrawable = new StateListDrawable(); Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.fastscroller_handle_normal); Drawable drawable1 = ContextCompat.getDrawable(getContext(), R.drawable.fastscroller_handle_pressed); stateListDrawable.addState(View.PRESSED_ENABLED_STATE_SET, new InsetDrawable(drawable1, getResources().getDimensionPixelSize(R.dimen.fastscroller_track_padding), 0, 0, 0)); stateListDrawable.addState(View.EMPTY_STATE_SET, new InsetDrawable(drawable, getResources().getDimensionPixelSize(R.dimen.fastscroller_track_padding), 0, 0, 0)); this.handle.setImageDrawable(stateListDrawable); }
From source file:com.kindleren.kandouwo.common.views.PagerSlidingTabStrip.java
public void setTextColor(int textColor) { //TODO test if it is right? this.tabTextColor = new ColorStateList(new int[][] { View.EMPTY_STATE_SET }, new int[] { textColor }); updateTabStyles();//from w w w .j av a 2 s . co m }