坐标布局:所有控件的坐标都是指定的
<AbsoluteLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="10px"
android:layout_y="20px"
android:text="AbsoluteLayout" >
</TextView>
</AbsoluteLayout>
<AbsoluteLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="10px"
android:layout_y="20px"
android:text="AbsoluteLayout" >
</TextView>
</AbsoluteLayout>
本文详细介绍了Android开发中坐标布局(AbsoluteLayout)的使用方法,通过指定每个控件的精确位置实现界面设计。展示了如何设置控件的X、Y坐标来放置TextView。
222

被折叠的 条评论
为什么被折叠?



