官方demo见
https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
分类:
移动开发 时间:
2014-05-16 19:19:36
阅读次数:
334
android:fillViewport=trueScrollView下面的组件如果有android:layout_height="fill_parent"或android:layout_height="wrap_content"那么必须将ScrollView的android:fillViewpor...
分类:
移动开发 时间:
2014-05-16 18:09:45
阅读次数:
368
EL表达式基本语法:${EL表达式}1.获取数据1)EL表达式只能获取四大域中的数据。2)EL表达式获取的对象如果是null,页面不会显示数据。因此,EL表达式中永远不会出现空指针异常。3).运算符和[]运算符.运算符能做的,[]运算符也能做。[]运算符能做,.运算符不一定能做。eg:
...
分类:
其他好文 时间:
2014-05-14 08:53:17
阅读次数:
421
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2014-05-14 07:02:27
阅读次数:
424
怎么退出整个框架如:最简单的方法:Response.Write( "
");退出登录详细介绍:下面的表格列出了 window 对象某些属性的相关信息。 属性 方法 描述 opener open opener 属性仅在使用
window.open 方法打开的页面中可用。 parent, top 无 ....
分类:
其他好文 时间:
2014-05-14 02:18:17
阅读次数:
308
jquery动态事件绑定,父元素需为静态元素,(不能是动态生成);$("#parent").on("click","#child",function(){//....});
分类:
Web程序 时间:
2014-05-14 00:09:15
阅读次数:
282
/media : Mount point for removeable
mediaPurposeThis directory contains subdirectories which are used as mount
points for removeable media such as flo...
分类:
其他好文 时间:
2014-05-13 16:37:16
阅读次数:
362
1.电话拨号器:
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
a...
分类:
移动开发 时间:
2014-05-13 15:08:57
阅读次数:
508
在include标签中不能省略
layout_width或者layout_height否则设置layout_weight就会无效。如下设置即可
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="w...
分类:
其他好文 时间:
2014-05-13 07:12:47
阅读次数:
389
楼主让这个问题郁闷了一晚上。。。。。在logcat里明明显示adapter的getview方法里的list大于一条数据 ,但posotion却一直是0.。。。。运行后也只显示list[0]里面的数据。。。。最后的最后原来错误出在布局文件上
我以前的是这样的;
<ScrollView
android:layout_width="fill_parent"
...
分类:
移动开发 时间:
2014-05-12 23:36:45
阅读次数:
386