xmlns:android 命名空间
命名空间(红色部分):可以提示语法错误
<?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">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:layout_height="wrap_content" android:text="GoGo" android:layout_width="wrap_content" android:id="@+id/Button01"></Button>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:scrollbars="vertical" android:fadingEdge="vertical">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/TextView01"
android:paddingTop="5dip" />
</ScrollView>
</LinearLayout>
</LinearLayout>
更多相关文章
- android设置背景图片透明
- Android——SeekBar(拖动条)相关知识总结贴
- Ubuntu 11.04 下搭建Android(安卓)NDK开发环境
- SDK中模拟器创建命令行!!!
- Android的进程优先级与进程回收详解
- shape.gradient使用示例
- vs2015 支持Android(安卓)arm neon Introducing Visual Studio’
- Android专利地雷曝光 中国粉丝忧虑情绪蔓延
- Android专利地雷曝光 中国粉丝忧虑情绪蔓延