2010-11-08 49 views
0

嗨再次,我问到添加图像和文本,我被告知把它放到一个XML。现在我的文本比xml有更多的方式,我可以添加一个滚动到它,或者我将不得不去另一条路线来获得我需要的效果。再次感谢。滚动一个xml

+0

滚动到什么?实际的XML?或textviews的布局?只是使用滚动视图 – Falmarri 2010-11-08 21:46:48

+0

不知道这是否是它,但它是感谢。 – bryan 2010-11-08 22:33:07

回答

3

是的,你的问题确实措辞很差。假设你在谈论你的XML布局文件,只需将你的视图封装到一个单一的ScrollView中,例如:

<ScrollView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    > 
    <RelativeLayout ...> 
     <ImageView .../> 
     <TextView .../> 
    //all the rest of your stuff here 
    </RelativeLayout> 
</ScrollView> 
相关问题