res.layout.main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android"      android:orientation="vertical"   子元素垂直排列  or    android:orientation="horizontal" 子元素水平排列    android:layout_width="fill_parent"  横向充满整个屏幕  or    android:layout_width="wrap_content" 根据视图的大小改变宽度    android:layout_height="fill_parent" 坚向充满整个屏幕  or    android:layout_height="wrap_content" 根据视图的大小改变高度    ><TextView      android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"  TextView 要显示的文本,字符串或者是字符串的引用,   这里是一个引用,引用的是 strings.xml 定义好的名字为 hello 的字符串    /></LinearLayout>


res.values.strings.xml<?xml version="1.0" encoding="utf-8"?><resources>    <string name="hello">Hello World, HelloWorld!</string>    <string name="app_name">HelloWorld</string></resources>


AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"      package="com.xserver.hello"   本应用的包      android:versionCode="1"   本应用的版本号      android:versionName="1.0">  本应用的版本名字  一个应用只有一个application,引用的资源和应用名称    <application android:icon="@drawable/icon" android:label="@string/app_name">    activity的类名 和 标题        <activity android:name=".HelloWorld"                  android:label="@string/app_name">            <intent-filter>过滤什么的。。                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application>  //SDK的最低版本要求    <uses-sdk android:minSdkVersion="9" /></manifest>


更多相关文章

  1. mainfest文件中android属性
  2. Android(安卓)WebView
  3. Android总结篇系列:Android(安卓)权限
  4. Android中如何收听特定应用安装成功的广播
  5. Android显示原理
  6. 麦子学院Android应用开发工程师视频教程 共18章
  7. 专家专栏:Android层次化安全架构及核心组件概览
  8. Android(安卓)Support兼容包详解
  9. Android深入四大组件(一)应用程序启动过程

随机推荐

  1. AndroidStudio开发flutter之环境配置
  2. 搭建android的开发环境
  3. Android 用网络图片做帧动画
  4. 摩托罗拉何以靠Android重生
  5. Android有用代码片断(五)
  6. 记录一下八款开源 Android 游戏引擎
  7. 【Android】socket通信【客户端访问】
  8. Android消息机制浅析——基本使用
  9. 图片自适应imageView属性
  10. Android内核和驱动篇-Android内核介绍