对不起,我因为我的大内容是在Android的在另一个叫Android的布局,使嵌套布局
新的,我要创建一个ScrollView
。通过这种方式,我在1个文件中创建了一些我的内容的部分(我们称之为FirstLayout.xml),另一部分为SeconedLayout.xml。现在我在一个单一的XML文件来调用他们两个。(Parent.xml)
但问题是,我不知道,我应该怎么称呼他们,我滚动型?
这里是代码
FirstLayout.xml
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
.
.
.
</AbsoluteLayout>
SeconedLayout.xml是:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
...
</LinearLayout>
Parent.xml
可见
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroller"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true" >
<!-- Call FirstLayout -->
<!-- Call SecondLayout -->
</ScrollView>
使用<包括布局=“@布局/标题栏” />这样 – Raghunandan
使用'' 标签 –
Geros
您需要包括运行时或之前的时间... –