android布局页面中引入另一个布局页面 .
2013-05-14 10:06
176 查看
http://blog.csdn.net/kome2000/article/details/6192188
<include android:id="@+id/cell1" layout="@layout/workspace_screen" />
参看
http://x1989.com/a/240.html
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="这是一个共享的布局文件"
/>
</LinearLayout>
2、在主布局中使用标签进行包含 <?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"
>
<include layout="@layout/common_layout"></include>
</LinearLayout>
上一篇:让J2ME程序跑在android上!
下一篇:优化Java代码,提高性
<include android:id="@+id/cell1" layout="@layout/workspace_screen" />
参看
http://x1989.com/a/240.html
Android Layout中使用include标签实现UI布局重用
<?xml version="1.0" encoding="utf-8"?><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="这是一个共享的布局文件"
/>
</LinearLayout>
2、在主布局中使用标签进行包含 <?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"
>
<include layout="@layout/common_layout"></include>
</LinearLayout>
上一篇:让J2ME程序跑在android上!
下一篇:优化Java代码,提高性
相关文章推荐
- android布局页面中引入另一个布局页面
- android布局页面中引入另一个布局页面
- Android中利用Intent传递数据到另一个页面
- android页面布局时定义控件ID时@id/XX和@+id/xx 有什么区别?
- Android页面布局后续详解
- android 页面布局时定义控件ID时@id/XX和@+id/xx 有什么区别?
- 一个jsp页面引入另一个jsp页面的三种方式 及静态引入和动态引入的区别
- android如何提高加载布局页面速度
- 一个jsp页面引入另一个jsp页面的三种方式
- ECLIPSE android 布局页面文件出错故障排除Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
- Android 页面布局属性全
- Android 输入法布局改变的页面适配
- 菜鸟 ——android开发,单击按钮之后跳转到另一个页面
- jsp中一个页面引入另一个页面的实现代码
- android 开发 简单的页面布局
- easyui在页面布局中引入外部的jsp页面,css冲突,功能失效,页面混乱
- Android UI 手机页面信息(布局、样式及程序国际化问题)
- Android页面布局之其他布局相关属性
- android软键盘问题解决方案(软键盘占据全屏,软键盘排挤页面布局)
- android测试开发过程中获取当前页面布局