滚动的FrameLayout [英] Scrollable FrameLayout

查看:251
本文介绍了滚动的FrameLayout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,所以我也跟着标签的Widget 教程创建我的应用程序的一些标签。在其中一个选项卡,我有大量的文字,我要和调试一个TextView。但是,所有的文字,所有的信息并不在屏幕上显示出来。我想,我可以向下滚动看到了休息,但我不能滚动。如何让这个我可以向下滚动我的FrameLayout这样我就可以看到我的文字其余任何想法?

Alright, so I followed the Tab Widget tutorial to create some tabs for my application. In one of the tabs, I have a TextView with a lot of text that I'm debugging with. But, with all of the text, all of the info doesn't show up on the screen. I figured that I could scroll down to see the rest, but I cannot scroll. Any idea on how to make it so that I can scroll down my FrameLayout so I can see the rest of my text?

推荐答案

您可以环绕要可滚动使用滚动型的观点,如下:

You can surround the view that you want to be scrollable with a ScrollView, as below:

<ScrollView android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:background="#ffffff">

// the views here that you want to make scrollable

</ScrollView>

这篇关于滚动的FrameLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆