本文整理了Java中android.widget.ImageView.getDrawableState()
方法的一些代码示例,展示了ImageView.getDrawableState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.getDrawableState()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:getDrawableState
暂无
代码示例来源:origin: zulip/zulip-android
cameraImage.setColorFilter(getResources().getColorStateList(R.color.colorTextSecondary).getColorForState(cameraImage.getDrawableState(), 0));
fileImage.setColorFilter(getResources().getColorStateList(R.color.colorTextSecondary).getColorForState(fileImage.getDrawableState(), 0));
代码示例来源:origin: michael-rapp/AndroidBottomSheet
int[] currentState = viewHolder.iconImageView.getDrawableState();
Method getStateDrawableIndex =
StateListDrawable.class.getMethod("getStateDrawableIndex", int[].class);
代码示例来源:origin: zulip/zulip-android
chatBox = (SwipeRemoveLinearLayout) findViewById(R.id.messageBoxContainer);
chatBox.registerToSwipeEvents(this);
addFileBtn.setColorFilter(getResources().getColorStateList(R.color.colorTextSecondary).getColorForState(addFileBtn.getDrawableState(), 0));
sendBtn.setColorFilter(getResources().getColorStateList(R.color.colorTextSecondary).getColorForState(sendBtn.getDrawableState(), 0));
togglePrivateStreamBtn.setColorFilter(getResources().getColorStateList(R.color.colorTextSecondary).getColorForState(togglePrivateStreamBtn.getDrawableState(), 0));
fabHidder = new CountDownTimer(Constants.HIDE_FAB_AFTER_SEC * 1000, Constants.HIDE_FAB_AFTER_SEC * 1000) {
public void onTick(long millisUntilFinished) {
代码示例来源:origin: com.albedinsky.android/ui-widget-common
tintDrawable.setState(mWidget.getDrawableState());
代码示例来源:origin: com.albedinsky.android/ui
tintDrawable.setState(mWidget.getDrawableState());
代码示例来源:origin: com.albedinsky.android/ui-widget-image
tintDrawable.setState(mWidget.getDrawableState());
内容来源于网络,如有侵权,请联系作者删除!