cn.sharesdk.onekeyshare.themes.classic.XView.getHeight()方法的使用及代码示例

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

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

XView.getHeight介绍

暂无

代码示例

代码示例来源: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: 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: 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

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

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

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: 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: 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: 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: 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);
}

相关文章