本文整理了Java中android.support.v7.widget.CardView.setOnLongClickListener()
方法的一些代码示例,展示了CardView.setOnLongClickListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.setOnLongClickListener()
方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:setOnLongClickListener
暂无
代码示例来源:origin: vitas/beaconloc
public void setOnLongClickListener(View.OnLongClickListener listener) {
binding.cardView.setOnLongClickListener(listener);
}
}
代码示例来源:origin: AmazMod/AmazMod
super.onActivityCreated(savedInstanceState);
cardView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: akshaykale/Android-Timeline-View
@Override
public void onBindViewHolder(HorizontalRecyclerViewHolder holder, final int position) {
holder.textView.setText(""+list.get(position).getTitle());
TimeLineConfig.getImageLoadEngine().onLoadImage(holder.imageView, list.get(position).getImageUrl());
if (TimeLineConfig.getListener() != null) {
holder.cardView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
TimeLineConfig.getListener().onTimelineObjectClicked(list.get(position));
}
});
holder.cardView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
TimeLineConfig.getListener().onTimelineObjectLongClicked(list.get(position));
return true;
}
});
}
}
代码示例来源:origin: materialos/android-icon-pack
public RequestVH(View itemView) {
super(itemView);
card = ButterKnife.findById(itemView, R.id.card);
title = ButterKnife.findById(itemView, R.id.title);
image = ButterKnife.findById(itemView, R.id.image);
if (card != null) {
card.setOnClickListener(this);
card.setOnLongClickListener(this);
}
}
代码示例来源:origin: daliyan/MyKeep
holder.mCardView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: hiteshbpatel/Android_Blog_Projects
card.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
代码示例来源:origin: materialos/android-icon-pack
public WallpaperViewHolder(View itemView, ClickListener listener) {
super(itemView);
mListener = listener;
card = ButterKnife.findById(itemView, R.id.card);
image = ButterKnife.findById(itemView, R.id.image);
colorFrame = ButterKnife.findById(itemView, R.id.colorFrame);
name = ButterKnife.findById(itemView, R.id.name);
author = ButterKnife.findById(itemView, R.id.author);
progress = ButterKnife.findById(itemView, R.id.progress);
card.setOnClickListener(this);
card.setOnLongClickListener(this);
}
内容来源于网络,如有侵权,请联系作者删除!