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