android:fillViewport=trueScrollView下面的组件如果有android:layout_height="fill_parent"或android:layout_height="wrap_content"那么必须将ScrollView的android:fillViewpor...
分类:
移动开发 时间:
2014-05-16 18:09:45
阅读次数:
368
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2014-05-14 07:02:27
阅读次数:
424
楼主让这个问题郁闷了一晚上。。。。。在logcat里明明显示adapter的getview方法里的list大于一条数据 ,但posotion却一直是0.。。。。运行后也只显示list[0]里面的数据。。。。最后的最后原来错误出在布局文件上
我以前的是这样的;
<ScrollView
android:layout_width="fill_parent"
...
分类:
移动开发 时间:
2014-05-12 23:36:45
阅读次数:
386
废话不多说,这是地址:http://android.lineten.net/layout.php。
有图有真相,例如:
你的XML假如是这样:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation=...
分类:
移动开发 时间:
2014-05-09 15:20:54
阅读次数:
424
Found the solution myself in the end. The problem
was not with theLinearLayout,but with theScrollView(seems weird, considering the
fact that theScroll...
分类:
移动开发 时间:
2014-05-08 13:42:02
阅读次数:
321
显示操作进度的对话框
1、使用上一篇创建的同一项目,在activity_main.xml文件中添加一个Button:
<Button
android:id="@+id/btn_dialog3"
android:layout_width="fill_parent"
android:layout_height="wrap_cont...
分类:
移动开发 时间:
2014-05-07 11:30:28
阅读次数:
434