http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/0924/1712.html

http://www.open-open.com/lib/view/open1455978476151.html

StateListDrawable drawable = new StateListDrawable();
drawable.addState(new int[]{android.R.attr.state_focused}, mFocusedDrawable);
drawable.addState(new int[]{android.R.attr.state_enabled, android.R.attr.state_pressed}, mEnabledPressedDrawable);
drawable.addState(new int[0], mDefaultDrawable);
分类: Drawable

0 条评论

发表回复

您的电子邮箱地址不会被公开。