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

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

本文整理了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

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: jaydenxiao2016/AndroidFire

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: jaydenxiao2016/AndroidFire

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: GitLqr/LQRWeChat

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: GitLqr/LQRWeChat

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: yoyiyi/bilisoleil

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: jaydenxiao2016/AndroidFire

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: thinkingsim/NewsZero

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: myxh/CoolShopping

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: myxh/CoolShopping

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: yoyiyi/bilisoleil

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: 736008081/frameAndroid

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: mingjunli/GithubApp

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: AndroidHensen/YaNi

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: myxh/CoolShopping

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: mingjunli/GithubApp

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: mingjunli/GithubApp

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: gaolhjy/enjoyshop

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

代码示例来源:origin: gaolhjy/enjoyshop

  1. initThumb(aivThumb);
  2. xvRemove = new XView(activity);
  3. xvRemove.setRatio(ratio);
  4. rllp = new RelativeLayout.LayoutParams(xWidth, xWidth);
  5. rllp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
  6. rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  7. rlThumb.addView(xvRemove, rllp);
  8. xvRemove.setOnClickListener(this);

代码示例来源:origin: 6ag/BaoKanAndroid

  1. protected void onDraw(Canvas canvas) {
  2. int width = getWidth() / 2;
  3. int height = getHeight() / 2;
  4. Paint paint = new Paint();
  5. paint.setAntiAlias(true);
  6. paint.setColor(0xffa0a0a0);
  7. canvas.drawRect(width, 0, getWidth(), height, paint);
  8. paint = new Paint();
  9. paint.setAntiAlias(true);
  10. paint.setStrokeWidth(3f * ratio);
  11. paint.setColor(0xffffffff);
  12. float left = 8f * ratio;
  13. canvas.drawLine(width + left, left, getWidth() - left, width - left, paint);
  14. canvas.drawLine(width + left, width - left, getWidth() - left, left, paint);
  15. }

相关文章