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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
The Last Watchdog
The Last Watchdog
T
Tenable Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
A
Arctic Wolf
云风的 BLOG
云风的 BLOG
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
MyScale Blog
MyScale Blog
B
Blog
Spread Privacy
Spread Privacy
S
Schneier on Security
Project Zero
Project Zero
L
LINUX DO - 热门话题
M
MIT News - Artificial intelligence
F
Full Disclosure
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cyberwarzone
Cyberwarzone
AWS News Blog
AWS News Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tailwind CSS Blog
K
Kaspersky official blog
Recent Announcements
Recent Announcements
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
P
Privacy & Cybersecurity Law Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Exploit Database - CXSecurity.com
V
Visual Studio Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Webroot Blog
Webroot 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);