android 目录结构

* ADT插件:eclipse开发Android必须使用的插件
* android development tools
* docs:离线帮助文档
* platforms:下载该平台才能创建该版本的模拟器
* system-images:CPU系统镜像,下载该镜像才能创建该平台的模拟器
* sources:Android.jar源码
* tools:SDK工具集
* platform-tools:平台工具集
* extras
* 支持类库:让低版本系统可以运行高版本的新特性


#Android项目目录结构
* src:java源码
* Android.jar:导入jar包才能使用Android的api
* libs:第三方jar包
* assets:资源文件夹,存放音频视频等较大文件
* bin:编译打包后自动生成的文件
* res:资源文件夹
* drawable:存放图片


#清单文件
* package:应用的包名,唯一标识
* versionCode:版本号,系统看的
* versionName:版本名字,给人看的
* application:
* icon:应用图标
* label:应用标题
* activity:Activity的使用必须要在清单文件中配置
* icon:Activity也可以配置icon,不配置默认使用application的


* 以下标签用于配置入口Activity
<intent-filter>
                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>


#DDMS
* dalvik debug monitor service


#ADB
* Android debug bridge
* 让Android设备和eclipse建立连接
* ADB指令
* adb install E:\yyh.apk:安装指定apk
* adb uninstall com.yingyonghui.market: 删除指定应用
* adb start-server:开启adb进程
* adb kill-server:杀死adb进程
* adb devices:列出与开发环境建立连接的Android设备的列表
* adb shell:进入Linux命令行
* ls:列出当前目录结构
* ps:列出当前设备的所有进程
* netstat -ano:查看端口占用情况


#线性布局
* 竖直方向时
* 左右对齐生效
* 顶部底部对齐无效
* 水平居中生效
* 竖直居中无效
* 水平方向时


###权重
* 按比例分配剩余空间

猜你喜欢

转载自blog.csdn.net/tiny_lxf/article/details/77894332