http://python3-cookbook.readthedocs.io/zh_CN/latest/c14/p01_testing_output_sent_to_stdout.html draw.io.Desktop MPH:32|1,157|1,158|2,179|1,210|2,239|1, ...
分类:
编程语言 时间:
2016-08-15 22:26:12
阅读次数:
181
Activity中
当屏幕有touch事件时,首先调用Activity的dispatchTouchEvent方法
/**
* Called to process touch screen events. You can override this to
* intercept all touch screen events before they are dispatc...
分类:
移动开发 时间:
2016-08-14 22:22:47
阅读次数:
261
闲来无事写的一个加载框,实现效果如下:
实现思路:
其实看样子就感觉很简单的...在自定义Relativelayout里用onDraw绘制就行了。
复习了一下以前学的知识。
代码实现:
package com.whale.nangua.toquan.view;
import android.content.Context;
import android.graphics...
分类:
移动开发 时间:
2016-08-11 22:47:26
阅读次数:
218
一、知识储备 1、在桌面显示一个View 注意: 1、如果上次离开时,图标在边缘(超出屏幕),这时系统为了显示图标为缩小图标 防止图标在拖放中超出屏幕 更新View方法1 更新View方法2 2、安卓底层在画图标时分三步onMeasure(测量View),onLayout(安放位置),onDraw( ...
分类:
其他好文 时间:
2016-08-06 21:46:57
阅读次数:
247
Time Limit: 1000MS Description There are two rows of positive integer numbers. We can draw one line segment between any two equal numbers, with values ...
分类:
其他好文 时间:
2016-08-04 19:31:08
阅读次数:
182
终极版
package com.zhy.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.graphics.drawable.Draw...
分类:
移动开发 时间:
2016-08-01 19:44:43
阅读次数:
243
@Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); canvas.drawColor(Color.WHITE); //设置画布颜色 pain ...
分类:
其他好文 时间:
2016-08-01 19:29:43
阅读次数:
114
<!doctype html><html><head><meta charset="utf-8"><title>moveTo与lineTo</title></head> <body onLoad="draw('canvas')"><p style=" width: 300px; float: lef ...
分类:
其他好文 时间:
2016-07-30 17:57:32
阅读次数:
114
自定义进度条实现大体流程 1、自定义属性声明(attrs文件) 2、自定义属性获取 3、测量(onMeasure) 4、绘制(onDraw) 代码: attrs文件: <!-- 自定义声明 --> <attr name="progress_unreach_color" format="color"> ...
分类:
其他好文 时间:
2016-07-25 18:02:13
阅读次数:
210
实现原理: 1、自定义View,在onDraw(Canvas canvas)中,画出2个Drawable滑动块,2个Drawable滑动条,2个Paint(text) 2、监听onTouchEvent()事件,修改滑块和滑动条的坐标,调用invalidate()来更新界面 使用方法 1、自定义Vie ...
分类:
移动开发 时间:
2016-07-22 23:05:52
阅读次数:
463