首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android中界面不能滚动如何解决

2012-03-27 
android中界面不能滚动怎么解决我的xml是这种结构的XML codeTextViewandroid:layout_widthfill_parent

android中界面不能滚动怎么解决
我的xml是这种结构的
 

XML code
<TextView        android:layout_width="fill_parent"        android:layout_height="50px"        android:text="This is head!!!"        />         <ExpandableListView             android:id="@id/android:list"             android:groupIndicator="@null"            android:layout_width="fill_parent"            android:layout_height="wrap_content"            android:background="#808080"            android:cacheColorHint="#00000000"             android:listSelector="@drawable/media"                />         <TextView             android:layout_width="fill_parent"            android:layout_height="30px"            android:text="This is foot!!"           />         

  现在的问题是吧ExpandableListView展开后head部分不动,而foot部分看不到了,我希望的效果是滚动屏幕head和foot也一起滚动,这个怎么解决,谢谢大家

[解决办法]
在最外面包个 ScrollView

热点排行