码迷,mamicode.com
首页 >  
搜索关键字:child    ( 3634个结果
ListView已到底部和顶部的判断
当ListView的第一个child View的getTop()为零时,就表示ListView已经滚动到顶部了或已经在顶部不能在向上滑动了。 当ListView的最后一个child View的getBottom()小于等于ListView的getHeight()时,就表示ListView滚动到底部或已经在底部了,不能再向下滑动了。...
分类:其他好文   时间:2015-06-19 18:45:56    阅读次数:92
addChildViewController
http://www.cnblogs.com/zengyou/p/3386605.html//在parent view controller 中添加 child view controller FirstViewController *firstViewController=[[FirstVie.....
分类:其他好文   时间:2015-06-19 18:32:28    阅读次数:112
百度地图删除标尺,logo,缩放按钮
mMapView = (MapView)findViewById(R.id.mapView); mMapView.showScaleControl(false); int count = mMapView.getChildCount(); for (int i = 0; i < count; i++) { View child = mMapView.getChildAt(i); ...
分类:其他好文   时间:2015-06-19 16:51:51    阅读次数:285
Java OOD 封装event
把小孩醒来时的具体情况封装成事件类Test.javaclass WakenUpEvent{ private long time; private String location; private Child source; public WakenUpEvent(long time, Strin.....
分类:编程语言   时间:2015-06-19 14:56:03    阅读次数:127
Java OOD 线程 改进
1.概述由于上一个文章《Java OOD 线程》中的线程是父类主动监听childe,比较耗资源,现改进为childe类醒来后主动联系父类2.代码Test.javaclass Child implements Runnable { private Dad dad; public Child(Dad.....
分类:编程语言   时间:2015-06-19 13:11:32    阅读次数:228
css3 nth-child(n) 的一个坑
css匹配选择第n个子元素可以使用:nth-child(n) 选择器,其匹配属于其父元素的第N个子元素,不论元素的类型 hahaah hahaah xixi1 xixi2 xixi3 xixi4...
分类:Web程序   时间:2015-06-19 00:06:00    阅读次数:140
:first与:first-child的区别
?':first' 只匹配一个元素,:first-child将为每个父元素匹配第一个子元素JohnKarlBrandonGlenTaneRalph$("li:first-child") :只匹配第一个ul 下的第一个li$("li:first-child"):匹配两个ul下的第一个li
分类:其他好文   时间:2015-06-18 23:43:17    阅读次数:155
:nth-child和:nth-of-type之间的差异
对于:nth-child:先看下面的一段代码:<style> p:nth-child(1){ border:1pxsolid; } </style> <divclass="c1"> <divclass="c11"> <pclass="pp">1</p> <pclass="pp">2</p> </div> <pclass="pp">3</..
分类:其他好文   时间:2015-06-18 22:22:26    阅读次数:129
Win32+API学习笔记:创建基本的窗口控件
创建一个标签CreateWindowEx(0,"static","姓名:",WS_CHILD|WS_VISIBLE|SS_NOTIFY,12,//xpos414,//ypos90,//width21,//heighthwnd_frame,(HMENU)id_lbl_name,g_hInstance,...
分类:Windows程序   时间:2015-06-18 08:11:55    阅读次数:178
C++ 动态创建按钮及 按钮的消息响应
动态创建的按钮 都会在消息 OnCommand 中得到处理,无论是什么消息,都会处理的 1\创建按钮 CButton* btn = new CButton(); btn->Create(_T("方法"), WS_CHILD | WS_VISIBLE, CRect(0,0,50,50), this, ...
分类:编程语言   时间:2015-06-16 18:57:59    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!