Android Studio学习基础篇一
1.第一次启动Android Studio:
complete installation:完成安装 Previous version:之前的版本 custom location:自定义位置
点击Start a new Android Studio project
Start:开始 new:创建 project:项目
1)没有反应,并且Configure下面的SDK Manager是灰色的,这是因为没有安装或者设置Android SDK
A、Configure-Settings-设置路径下载SDK
B、Configure-Project Defaults-Project Struture-填写已有SDK路径
Project-Struture:项目结构
注:打开Studio之后,在Other Settings中也可以设置SDK路径,如下图
2)显示下面界面
new Project:新项目
Configure your new Project:配置您的新项目
Application name:应用程序名称(项目名称)
Company Domain:公司的域(公司域名)
Package name:包名(app打包名称)---点击后面的edit可以自定义包名,点击Done表示完成
Include C++ Support:包括C + +支架
Project location:存放路径
3)点击下一步(Next)
Target android Devices:目标android设备(android设备设置界面)
Select the form factors your app will run on:选择应用程序的运行形式
Select:选择 factors:因素/形式
Different platforms may require separate SDKs:不同的平台可能需要单独的SDK
Different:不同 platforms:平台 may:可能 require:需要 separate:单独/分开
Phone and Tablet:手机和平板电脑
Minimum SDK:最低SDK
Lower API levels target more devices, but have fewer features available:API水平较低目标更多的设备,但有更少的特性
Lower:下限 levels:水平 target:目标 devices:设备 fewer:较少 features:特点 available:可用的
By targeting API 14 and later,you app will run on approximately 97.4% of the devices that are active on theGoogle Play store
通过针对API 14,后来,你应用程序将运行在大约97.4%的设备,是活跃在谷歌商店
By:通过 targeting:目标市场 later:后来 approximately:大约 devices:设备 active:活跃 store:商店
Wear:穿戴设备 TV:电视 Android Auto:车载设备 Glass:玻璃制品
4)点击下一步
add an activity to Mobile:添加一个Activity到手机
Add No Activity:不创建Activity
Basic Activity:
Creates a new basic activity with an app bar:创建一个新的基类Activity与一个应用程序bar栏
Activity Name:Activity名字
The name of the activity class to create:Activity类的名称
Layout Name:布局文件名字
The name of the layout to create for the activity:Activity的布局文件的名称
Title:
The name of the activity.For launcher activities,the application title:这个Activity的名字就是应用的bar栏的名称
Menu Resource Name:菜单资源名称
The name of the resource file to create for the menu items:资源文件的名称来创建菜单项
Use a Fragment:使用一个Fragment(片段)
Empty Activity
常用这个Activity
Creates a new empty activity:创建一个空的Activity
Activity Name:Activity的名字
Generate Layout File:生成布局文件
Layout Name:布局文件的名字
Backwards Compatibility (AppCompat) :向后兼容 Compatibility/AppCompat):兼容 Backwards:向后
5)点击Finish,创建项目完成。进入Studio IDE界面