Code Monkey home page Code Monkey logo

Little Happy's Projects

bitmapprimarydemo icon bitmapprimarydemo

1.叠加图片形成一张新的bitmap;2.分别用Xfermode和BitmapShader把bitmap裁剪成椭圆形显示;3.可随意拖拽的bitmap;4.一个自定义Drawable

canvasdrawtext icon canvasdrawtext

在Canvas上绘制Text,换行时,未显示完全单词移至下一行显示,每行显示居中。滑动屏幕改变限制框大小

canvasscaletest icon canvasscaletest

通过保存绘制的Path信息(而非保存到一张Bitmap)来绘制不同尺寸的Bitmap,使得最终产生各个尺寸清晰的图片。

customanimator icon customanimator

图片放大动画,同时扩大图片的显示区域。触摸屏幕触发动画

draganddropdemo icon draganddropdemo

使用View的startDrag方法开始对dragEvent的监听处理,将一个view拖入另一个View内,并触发操作。这个Demo中拖动色块到最下侧区域内进行颜色混合,拖到中间区域则弹出“不接受”toast

fileioperformance icon fileioperformance

比较android几种复制方式的速度,并将结果以图表形式展示

graffiti icon graffiti

涂鸦:seekbar调整画笔粗细、radiobutton选取画笔颜色,back支持清楚上一笔

rotateview icon rotateview

通过旋转canvas绘制和产生各个旋转状态的Bitmap两种来实现旋转

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.