本文整理了Java中android.widget.ImageView.isClickable()
方法的一些代码示例,展示了ImageView.isClickable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.isClickable()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:isClickable
暂无
代码示例来源:origin: WowzaMediaSystems/gocoder-sdk-samples-android
public boolean onTouch(View v, MotionEvent event) {
ImageView imgView = (ImageView) v;
if (!imgView.isClickable()) return false;
if (event.getAction() == MotionEvent.ACTION_DOWN) {
imgView.getDrawable().setColorFilter(mPressedColor, PorterDuff.Mode.SRC_IN);
} else if (event.getAction() == MotionEvent.ACTION_UP) {
imgView.getDrawable().clearColorFilter();
}
return false;
}
});
代码示例来源:origin: minggo620/AndroidAutoClick
Log.i("mService","广告image 为null");
}else {
if(adImageView.isClickable()){
Log.i("mService","广告image可以点击");
}else{
代码示例来源:origin: derry/delion
@Override
public void onClick(View v) {
if (mToggleTabStackButton == v) {
// The button is clickable before the native library is loaded
// and the listener is setup.
if (mToggleTabStackButton != null && mToggleTabStackButton.isClickable()
&& mTabSwitcherListener != null) {
dismissTabSwitcherCallout();
cancelAppMenuUpdateBadgeAnimation();
mTabSwitcherListener.onClick(mToggleTabStackButton);
RecordUserAction.record("MobileToolbarShowStackView");
}
} else if (mNewTabButton == v) {
v.setEnabled(false);
if (mNewTabListener != null) {
mNewTabListener.onClick(v);
RecordUserAction.record("MobileToolbarStackViewNewTab");
RecordUserAction.record("MobileNewTabOpened");
// TODO(kkimlabs): Record UMA action for homepage button.
}
} else if (mHomeButton == v) {
openHomepage();
}
}
内容来源于网络,如有侵权,请联系作者删除!