Android Studio是Google于2013 I/O大会针对Android开发推出的新的开发工具,他是未来的趋势,必将取 代eclipse。
- 首先,先指出Android Studio中的两个概念。 Project 和 Module 。在Android Studio中, Project 的真实含义是工作空间, Module 为一个具体的项目。
Eclipse 的 Project 等同于Android Studio的 Module 。
Eclipse 的 workspace 等同于Android Studio的 Project 。
File-New project. - Gradle 构建
和 Eclipse 不相同是因为Android Studio使用了 Gradle 这个项目构建工具,而 Eclipse 使用 Ant 构建项目,你可以通过 Gradle 设置和 Eclipse 拥有相同的目录结构。 - 项目导航,菜单区域,编辑区域(代码和layout design设计界面), 控制台输出。
控件列表,预览视图,组件树,控件属性。 - 直接写xml比按钮拖动多。
模拟器:
1.自带的模拟器;
2.第三方模拟器;海马玩(快需联网)和Genymotion.
3.真机测试;!!! - java/ - Source files for the module.
manifests/ - Manifest files for the module.
res/ - Resource files for the module.
Gradle Scripts/ - Gradle build and property files. - 设置都在Setting里面;
风格:File - Settings - Appearance - Theme - Darcula (黑色主题)
字体:editor-font-save as-courer new 14.
keymap:快捷键。代码补全:compl ctrl+/. 不区分大小写。
Auto import. - 自动保存,无需一直Ctrl + S
Studio 默认安装会启动模拟器,如果想让安装到真机上可以配置一下。在下拉菜单中选择 Edit Configurations 选择提示或者是USB设备。