本文整理了Java中android.widget.ImageView.setOnLongClickListener()
方法的一些代码示例,展示了ImageView.setOnLongClickListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.setOnLongClickListener()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:setOnLongClickListener
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onSuccess() {
iv.setOnLongClickListener(MainActivity.this);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onSuccess() {
iv.setOnLongClickListener(MainActivity.this);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onSuccess() {
iv.setOnLongClickListener(MainActivity.this);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onSuccess() {
iv.setOnLongClickListener(MainActivity.this);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onSuccess() {
iv.setOnLongClickListener(AbstractDragDropDemoActivity.this);
}
代码示例来源:origin: Hitomis/transferee
/**
* 为加载完的成图片ImageView 绑定点 Transferee 操作事件
*
* @param imageView 加载完成的 ImageView
* @param pos 关闭 Transferee 时图片所在的索引
*/
public void bindOnOperationListener(final ImageView imageView, final int pos) {
// bind click dismiss listener
imageView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
dismiss(pos);
}
});
// bind long click listener
if (transConfig.getLongClickListener() != null)
imageView.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
transConfig.getLongClickListener().onLongClick(imageView, pos);
return false;
}
});
}
代码示例来源:origin: stackoverflow.com
iconImageView.setOnLongClickListener(this);
代码示例来源:origin: liaoinstan/SpringView
holder.img_header.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: mikepenz/AboutLibraries
holder.aboutIcon.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: guardianproject/haven
holder.image.setOnLongClickListener(view -> {
shareMedia(eventTrigger);
return false;
代码示例来源:origin: commonsguy/cw-omnibus
thumbnailLarge.setOnDragListener(this);
thumbnailLarge.setOnHoverListener(this);
thumbnailLarge.setOnLongClickListener(this);
代码示例来源:origin: julian-klode/dns66
view.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: raphaelbussa/HeaderView
/**
* @param onLongClickListener set onLongClickListener for arrow in HeaderView
*/
public void setOnLongArrowClickListener(View.OnLongClickListener onLongClickListener) {
arrow.setOnLongClickListener(onLongClickListener);
}
代码示例来源:origin: GeoODK/collect
@Override
public void setOnLongClickListener(OnLongClickListener l) {
mDrawButton.setOnLongClickListener(l);
if (mImageView != null) {
mImageView.setOnLongClickListener(l);
}
}
代码示例来源:origin: 7449/Retrofit_RxJava_MVP
@Override
protected Object instantiate(final ViewGroup container, final int position, ImageDetailInfo data) {
final ImageView imageView = new ImageView(container.getContext());
ImageLoaderUtils.display(imageView, TextUtils.concat(Api.IMAGER_URL, data.getSrc()));
container.addView(imageView);
imageView.setOnLongClickListener(this);
return imageView;
}
代码示例来源:origin: GeoODK/collect
@Override
public void setOnLongClickListener(OnLongClickListener l) {
mCaptureButton.setOnLongClickListener(l);
mChooseButton.setOnLongClickListener(l);
if (mImageView != null) {
mImageView.setOnLongClickListener(l);
}
}
代码示例来源:origin: hencoder/PlusDemo
@Override
protected void onFinishInflate() {
super.onFinishInflate();
avatarView = findViewById(R.id.avatarView);
logoView = findViewById(R.id.logoView);
collectorLayout = findViewById(R.id.collectorLayout);
avatarView.setOnLongClickListener(dragStarter);
logoView.setOnLongClickListener(dragStarter);
collectorLayout.setOnDragListener(dragListener);
}
代码示例来源:origin: enricocid/LaunchEnr
@Override
protected void onFinishInflate() {
super.onFinishInflate();
mAllAppsHandle = (ImageView) findViewById(R.id.all_apps_handle);
mAllAppsHandle.setImageDrawable(getCaretDrawable());
mAllAppsHandle.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener());
mAllAppsHandle.setOnClickListener(mLauncher);
mAllAppsHandle.setOnLongClickListener(mLauncher);
mAllAppsHandle.setOnFocusChangeListener(mLauncher.mFocusHandler);
mLauncher.setAllAppsButton(mAllAppsHandle);
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
@Override
protected void onFinishInflate() {
super.onFinishInflate();
mAllAppsHandle = (ImageView) findViewById(R.id.all_apps_handle);
mAllAppsHandle.setImageDrawable(getCaretDrawable());
mAllAppsHandle.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener());
mAllAppsHandle.setOnClickListener(mLauncher);
mAllAppsHandle.setOnLongClickListener(mLauncher);
mAllAppsHandle.setOnFocusChangeListener(mLauncher.mFocusHandler);
mLauncher.setAllAppsButton(mAllAppsHandle);
}
代码示例来源:origin: klinker24/launcher3
@Override
protected void onFinishInflate() {
super.onFinishInflate();
mAllAppsHandle = (ImageView) findViewById(R.id.all_apps_handle);
mAllAppsHandle.setImageDrawable(getCaretDrawable());
mAllAppsHandle.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener());
mAllAppsHandle.setOnClickListener(mLauncher);
mAllAppsHandle.setOnLongClickListener(mLauncher);
mAllAppsHandle.setOnFocusChangeListener(mLauncher.mFocusHandler);
mLauncher.setAllAppsButton(mAllAppsHandle);
}
内容来源于网络,如有侵权,请联系作者删除!