惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
B
Blog RSS Feed
Last Week in AI
Last Week in AI
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
雷峰网
雷峰网
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
博客园 - 司徒正美
U
Unit 42
量子位

博客园 - 林骄

Android note 2010.08.02 v2 2010.08.03 Android note Android Note 2011.08.01 [Biztalk]问题集 - 林骄 - 博客园 Winform导出Excel Excel单元格颜色 判断系统版本 ListView && XmlReader How to open a folder with explorer - 林骄 Print Can't open Infragistics help document How to get local machine date format.如何获取本机时间格式 cannot open user default database WebService Tips 中文全半角转换 Windows Service 装机备忘 Db2中的时间
Android Note 2010.08.02
林骄 · 2011-08-02 · via 博客园 - 林骄

*RelativeLayout
 android:layout_below="@id/label"
 android:layout_alignParentRight="true"          android:layout_marginLeft="10dip"
 android:layout_toLeftOf="@id/ok"         android:layout_alignTop="@id/ok"
*TableLayout
android:stretchColumns="1"
android:layout_column="1"
*CheckBox isChecked()
*Event
Button  onClickListener
GridView onItemClickListener
ListView  onItemClickListener
CheckBox onClickListener
RadioButton onClickListener
Spinner  onItemSelectListener

*Canvas
 canvas.drawColor(Color.BLUE);

*paint用法示例
 canvas.drawColor(Color.BLUE);
     Paint paint=new Paint();
     paint.setAntiAlias(true);
     paint.setColor(Color.RED);
     //paint.setStyle(Style.STROKE);
     paint.setStrokeWidth(3);
    
    
    
     canvas.drawRect(0, 0, 100, 100, paint);
     canvas.drawCircle(100, 100,100, paint);    
     RectF rect=new RectF(0,100,200,200);
     canvas.drawRoundRect(rect, 15, 15, paint);     
     canvas.drawOval(rect, paint); 
    
     //Text
     paint.setTextSize(20);
     canvas.drawText("TestText", 0, 400, paint);
    
     paint.setStyle(Paint.Style.FILL);
     Shader shader=new LinearGradient(0, 0, 10, 10, new int[]{Color.BLACK,Color.RED,Color.GREEN}, null,Shader.TileMode.REPEAT);
     paint.setShader(shader);
     paint.setShadowLayer(45, 10, 10,Color.GRAY);
     //path
     Path path=new Path();
     path.moveTo(200, 200);
     path.lineTo(100, 300);
     path.lineTo(0, 200);
     path.close();
     canvas.drawPath(path, paint);

*Path 特效
PathEffect effect=new CornerPathEffect(10);
paint.setPathEffect(effect);