场景 在Android中画笔使用Paint类,画布使用Canvas类来表示。 绘图的基本步骤 首先编写一个继承自View的自定义View类,然后重写其onDraw方法,最后把自定义的view添加到actvity中。 效果 注: 博客: https://blog.csdn.net/badao_lium ...
分类:
移动开发 时间:
2020-01-11 00:04:04
阅读次数:
128
import matplotlib.pyplot as plt import matplotlib.patches as mpatches # draw rectangles on the original image fig, ax = plt.subplots(ncols=1, nrows=1, ...
分类:
其他好文 时间:
2020-01-10 20:43:13
阅读次数:
109
#七段数码管 import turtle, time def drawGap(): #绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw): #绘制单段数码管 drawGap() turtle.pendown() if draw else tu ...
分类:
其他好文 时间:
2020-01-10 20:17:01
阅读次数:
102
常见实现App 上面侧边栏菜单之前使用SlidingMenu,现在发现Goolgle原生NavigationDrawer也挺好用。但是细心的开发者们发现NavigationDrawer没有类似SlidingMenu全屏平移的效果,其实不用着急,简单修改即可实现此效果。 话不多说上代码: 代码就不发了 ...
分类:
其他好文 时间:
2020-01-10 12:27:01
阅读次数:
60
ContentsIntroduction. ....................................................................................... 524History. ............................ ...
分类:
其他好文 时间:
2020-01-09 22:54:26
阅读次数:
88
现在参考网上的做法是在云函数里面生成qrcode,然后保存该jpg到云存储。得到该fileID就可以渲染到image组件,也可以draw到canvas。 出处:https://developers.weixin.qq.com/community/develop/doc/000c02b06ec0d85 ...
分类:
微信 时间:
2020-01-08 18:49:52
阅读次数:
88
https://about.draw.io/uml-state-diagrams-with-draw-io/ State diagrams have been used in programming to describe the various possible states that a sys ...
分类:
其他好文 时间:
2020-01-08 10:43:43
阅读次数:
96
https://www.jianshu.com/p/1cc5a3f3ba90 https://blog.csdn.net/zhongdong00/article/details/80590396 https://blog.csdn.net/zhongdong00/article/details/80 ...
分类:
其他好文 时间:
2020-01-07 18:18:10
阅读次数:
85
本文来自整理和简化 调用 setState()必须是没有调用过 dispose()方法,不然出错,可通过 属性来判断调用此方法是否合法。 清晰的看到在framework.dart内setstate方法除了一些条件判断就是: 那我们看看markNeedsBuild。 Element 类 markNee ...
分类:
其他好文 时间:
2020-01-01 19:00:31
阅读次数:
391
import osimport timeimport randomimport pygameimport colorama'''一些变量'''BGMPATH = 'bgm.mp3'colorama.init(convert=True)STARS = [2, 4, 8, 10, 14, 20, 26, ...
分类:
编程语言 时间:
2020-01-01 09:22:24
阅读次数:
271