Android Activity 中常见的控件
2010-09-10 01:12:00 来源:WEB开发网11. />
12. < /LinearLayout>
< ?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 android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" /> < /LinearLayout>
AndroidManifes.xml
1. < ?xml version="1.0" encoding="utf-8"?>
2. < manifest xmlns:android="http://schemas.android.com/apk/res/android"
3. package="kaier.test"
4. android:versionCode="1"
5. android:versionName="1.0">
6. < application android:icon="@drawable/icon" android:label="@string/app_name">
7. < activity android:name=".Deom"
8. android:label="@string/app_name">
9. < intent-filter>
10. < action android:name="android.intent.action.MAIN" />
11. < category android:name="android.intent.category.LAUNCHER" />
12. < /intent-filter>
13. < /activity>
14. < activity android:name=".Result" android:label="hi"/>
15. < /application>
16. < uses-sdk android:minSdkVersion="8" />
17.
18. < /manifest>
更多精彩
赞助商链接