Android free-hand drawing

source from http://www.cnblogs.com/android-html5/archive/2011/07/20/2534132.html

贝塞尔曲线是应用于二维图形应用程序的数学曲线。曲线的定义有四个点:起始点、终止点(也称锚点)以及两个相互分离的中间点。滑动两个中间点,贝塞尔曲线的形状会发生变化

draw rectangular, triangular

android 画图程序
http://www.apkbus.com/android-20953-1-1.html

图片淡入淡出

http://www.cnblogs.com/android-html5/archive/2011/07/21/2534131.html

transparent (source from http://liangruijun.blog.51cto.com/3061169/807956:

1.使用Android系统自带的透明效果资源<android:backgroundandroid:background=”@android:color/transparent”/>

2.使用ARGB来控制
半透明

android:background="#e0000000"

透明

android:backgroundandroid:background="#00000000"

3.设置Alpha
View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id
v.getBackground().setAlpha(100);//透明度0~255透明度值 ,值越小越透明

可拖拽ImageButton:

http://www.cnblogs.com/android-html5/archive/2011/07/26/2534125.html

android 超炫的图片浏览器
http://www.apkbus.com/android-20952-1-1.html

some other resources: http://liangruijun.blog.51cto.com/3061169/805475

some apps using Internet connection:http://www.cnblogs.com/android-html5/archive/2012/05/29/2533936.html

Android imageView图片按比例缩放:

android:scaleType="centerInside"

//表示按比例缩放图片,使得图片长 (宽)的小于等于视图的相应维度。

CENTER /center 在视图中心显示图片,并且不缩放图片
CENTER_CROP / centerCrop 按比例缩放图片,使得图片长 (宽)的大于等于视图的相应维度
CENTER_INSIDE / centerInside 按比例缩放图片,使得图片长 (宽)的小于等于视图的相应维度
FIT_CENTER / fitCenter 按比例缩放图片到视图的最小边,居中显示
FIT_END / fitEnd 按比例缩放图片到视图的最小边,显示在视图的下部分位置
FIT_START / fitStart 把图片按比例扩大/缩小到视图的最小边,显示在视图的上部分位置
FIT_XY / fitXY 把图片不按比例缩放到视图的大小显示
MATRIX / matrix 用矩阵来绘制

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: