---
title: "Android开发注意事项"
author: "daikainan"
date: "2012-02-16T14:57:13Z"
tags: ["Android开发注意事项"]
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2012-02-16T14:57:13Z"
id: 1408037
url: "https://daikainan.iteye.com/blog/1408037"
---

1.资源文件的名称格式为\[a-z0-9\_.]。是不允许大写的  
2.Paint设置颜色和透明度的时间，一定先设置颜色然后再设置透明度。否则设置的透明度会无效。  
3.在是用相对布局RelativeLayout，你声明的@+id/button1必须在使用的前面，否则会报错误

 

\-------------------------------------------------------------------------------------------------------------------------------

以后遇见别的情况还会陆续加上