Hello, Android Studio!
来源:互联网 发布:ones刻录软件 编辑:程序博客网 时间:2024/05/29 03:55
Hello, Android Studio
- 启动Android Studio,选择“New Project..."
- 输入"Application name:" HelloAndroidStudio;修改"Package name:" com.test.helloandroidstudio 选择好”Project location:",然后点击界面上的“Next”,截图如下:
- 继续点击"Next"
- 继续点击“Next”
- 进入到向导最后一个页面,修改"Activity name" 和 "Layout name" (注意:layout_name要全部用小写字母), 然后点击"Finish", 如图所示:
- Project structure 如图所示,注意红色标注的地方。
- 下面打开activity_main.xml文件,将"Hello world!" 替换为 "Hello, Android Studio!" 然后保存。代码如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, Android Studio!" /></RelativeLayout>
- 运行程序,结果如图:
- Hello, Android Studio!
- Android Studio:Hello JNI
- hello world (android studio DNK )
- 向android studio说Hello
- 基于Android Studio搭建hello world工程
- Android Studio教程02-Hello Word
- Android Studio + NDK 之 Hello Word
- Android Studio JNI 基础入门--Hello World
- Android Studio + OpenCV JNI 中的 hello world
- Create Hello-jni with android studio 2.2
- 【转】Create Hello-JNI with Android Studio
- Android Studio 环境搭建与Hello World
- Say Hello To Android Studio【android studio 安装步骤概述】
- 使用android studio开发android项目一:hello android
- 使用android studio开发android项目一:hello android
- android studio新建hello world时出现Rendering Problems
- android studio新建hello world时出现Rendering Problems
- 使用Android Studio创建第一个Hello World应用程序
- bnu 33967 Boxes in a Line 链表模拟
- hdu3790最短路径
- WebService说明书的书写
- 2013年最后2个月的学习目标(成果)(上次更新2013年11月18日)
- OCP-1Z0-053-V12.02-271题
- Hello, Android Studio!
- android强制隐藏键盘(当edittext获得焦点时不弹出键盘)
- perror实现分析(3.0: Linux支持的系统错误)
- hdu1001 a+b
- hdu 2448 Mining Station on the Sea(KM匹配//费用流)
- 实现浏览器全屏或其中元素全屏
- IOS客户端内购(IAP)简单总结
- bnu 33966 Almost Palindrome 区间dp
- 编译安装openssh