作者:趣校区导购网 | 来源:互联网 | 2023-07-08 10:13
终于升到大二了,我们开设了新的课程——Android入门基础,这让我很感兴趣!我们身处一个智能时代,生活在逐渐便利的同时,也隐藏着很多风险。学习这么课程之后,会让我们知道安卓是怎样运行
终于升到大二了,我们开设了新的课程——Android入门基础,这让我很感兴趣!
我们身处一个智能时代,生活在逐渐便利的同时,也隐藏着很多风险。学习这么课程之后,会让我们知道安卓是怎样运行的。
我们做的第一个程序是Hello World
- xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
-
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="@string/hello" />
-
- LinearLayout>
- xml version="1.0" encoding="utf-8"?>
- <resources>
-
- <string name="hello">Hello World, AndroidhelloActivity!string>
- <string name="app_name">Androidhellostring>
-
- resources>
感觉第一次做这个很简单,可以进行对应用图标的更换以及对后面背景的设定,但是,首先要将你所要选择的图片放在对应的文件夹里面,对他进行引用才可以!