本文整理了Java中cn.sharesdk.onekeyshare.themes.classic.XView
类的一些代码示例,展示了XView
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XView
类的具体详情如下:
包路径:cn.sharesdk.onekeyshare.themes.classic.XView
类名称:XView
[英]编辑页面中删除图片“X”按钮
[中]编辑页面中删除图片“X”按钮
代码示例来源:origin: GitLqr/LQRWeChat
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: jaydenxiao2016/AndroidFire
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: GitLqr/LQRWeChat
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: GitLqr/LQRWeChat
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: yoyiyi/bilisoleil
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: thinkingsim/NewsZero
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: myxh/CoolShopping
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: myxh/CoolShopping
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: yoyiyi/bilisoleil
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: 736008081/frameAndroid
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: mingjunli/GithubApp
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: AndroidHensen/YaNi
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: myxh/CoolShopping
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: mingjunli/GithubApp
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: mingjunli/GithubApp
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: gaolhjy/enjoyshop
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
代码示例来源:origin: gaolhjy/enjoyshop
initThumb(aivThumb);
xvRemove = new XView(activity);
xvRemove.setRatio(ratio);
rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rlThumb.addView(xvRemove, rllp);
xvRemove.setOnClickListener(this);
代码示例来源:origin: 6ag/BaoKanAndroid
protected void onDraw(Canvas canvas) {
int width = getWidth() / 2;
int height = getHeight() / 2;
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(0xffa0a0a0);
canvas.drawRect(width, 0, getWidth(), height, paint);
paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(3f * ratio);
paint.setColor(0xffffffff);
float left = 8f * ratio;
canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
}
内容来源于网络,如有侵权,请联系作者删除!