本文整理汇总了Java中com.makeramen.roundedimageview.RoundedImageView.setOnClickListener方法的典型用法代码示例。如果您正苦于以下问题:Java RoundedImageView.setOnClickListener方法的具体用法?Java RoundedImageView.setOnClickListener怎么用?Java RoundedImageView.setOnClickListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.makeramen.roundedimageview.RoundedImageView
的用法示例。
在下文中一共展示了RoundedImageView.setOnClickListener方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invalidateParams
import com.makeramen.roundedimageview.RoundedImageView; //导入方法依赖的package包/类
void invalidateParams(){
stop();
removeAllViews();
looper.clear();
for(int i=0;i<mSize;i++){
RoundedImageView view = new RoundedImageView(getContext());
if(i!=0){
view.setBackgroundResource(R.drawable.drop_shadow);
view.setPadding(0,0,15,0);
}
view.setScaleType(ImageView.ScaleType.FIT_XY);
view.setCornerRadius((float) 10);
LayoutParams params = new LayoutParams(mChildWidth, mChildHeight);
view.setLayoutParams(params);
addView(view);
Banner banner = new Banner();
banner.view = view;
banner.position = i;
looper.add(banner);
view.setTag(i);
view.setOnClickListener(viewClickListener);
}
LogUtil.d(TAG, "invalidateParams");
}
示例2: ThreadViewHolder
import com.makeramen.roundedimageview.RoundedImageView; //导入方法依赖的package包/类
public ThreadViewHolder(View view, OnClickListener listener) {
super(view);
title = (TextView) view.findViewById(R.id.sender);
unread = (TextView) view.findViewById(R.id.unread);
message = (TextView) view.findViewById(R.id.message);
date = (TextView) view.findViewById(R.id.date);
attachment = (RoundedImageView) view.findViewById(R.id.attachment);
videoLabel = (ImageView) view.findViewById(R.id.video_label);
card = (ViewGroup) view.findViewById(R.id.card);
profile = (ImageView) view.findViewById(R.id.profile_image);
mListener = listener;
profile.setOnClickListener(this);
if (attachment != null) {
attachment.setOnClickListener(this);
}
itemView.setOnClickListener(this);
itemView.setOnLongClickListener(this);
}