我的第一个Android程序
来源:互联网 发布:美工刀片多少钱一盒 编辑:程序博客网 时间:2024/05/21 15:06
按照国际惯例(哈哈) 还是 Hello World...呵呵 Android的模拟器还是很漂亮的吧....
package com.Rayidream;
import android.app.Activity;
import android.os.Bundle;
public class rayi extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Black);
setContentView(R.layout.main);
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView id="@+id/txt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World"
/>
</LinearLayout>
- 我的第一个Android程序
- 我的第一个Android程序
- 我的第一个Android程序
- 我的第一个Android程序
- 我的第一个android程序 HelloWorld
- Android之我的第一个程序
- 我的第一个Android程序-计算器
- 我的第一个Android程序-计算器
- 我的第一个Android JNI程序
- 我的第一个Android程序--HelloWorld
- 我的第一个Android程序
- 我的第一个程序
- 我的第一个程序
- 我的第一个程序
- 我的第一个程序
- 我的第一个程序
- 我的第一个程序
- 我的第一个程序
- 开博了,Attention!
- 网页Cookie的构成以及相关属性分析
- 用GPS模块校准系统时间
- 面向对象理论(1)-Preview
- CONVERT的使用方法
- 我的第一个Android程序
- MPEG-2中的Profile@Level
- 希望就在前方
- Actionscript 3: How to use describeType() to Save an Object to XML
- 软件物理架构与逻辑架构在软件架构中的应用
- asp.net点击按钮清空页面上所有TextBox文本框的值
- Ubuntu9.04下使用apt安装配置LAMP
- In the exotic view of the city
- 如果推广网站