cn.sharesdk.onekeyshare.themes.classic.XView类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中cn.sharesdk.onekeyshare.themes.classic.XView类的一些代码示例,展示了XView类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XView类的具体详情如下:
包路径:cn.sharesdk.onekeyshare.themes.classic.XView
类名称: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);
}

相关文章