开发者

Scrollable FrameLayout

开发者 https://www.devze.com 2023-01-05 20:30 出处:网络
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 o开发者_StackOverflowf text that I\'m debugging with.But, with al

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 o开发者_StackOverflowf 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消