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

推荐订阅源

N
News and Events Feed by Topic
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
Jina AI
Jina AI
H
Help Net Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
L
LangChain Blog
Recorded Future
Recorded Future
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
GbyAI
GbyAI
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
M
MIT News - Artificial intelligence
爱范儿
爱范儿
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
B
Blog
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
W
WeLiveSecurity
MongoDB | Blog
MongoDB | Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
The Cloudflare Blog
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
D
DataBreaches.Net
博客园 - 【当耐特】
T
Troy Hunt's Blog
V
Visual Studio Blog
V2EX - 技术
V2EX - 技术
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google Online Security Blog
Google Online Security Blog
The GitHub Blog
The GitHub Blog

博客园 - 林骄

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);