码迷,mamicode.com
首页 >  
搜索关键字:bind view    ( 43811个结果
Android Scrollview 内部组件android:layout_height="fill_parent"无效的解决办法
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
Spring MVC 中的 forward 和 redirect
Spring MVC 中,我们在返回逻辑视图时,框架会通过 viewResolver 来解析得到具体的 View,然后向浏览器渲染。假设逻辑视图名为 hello,通过配置,我们配置某个 ViewResolver 如下:Xml代码: 假如逻辑试图名为 "hello",因此 viewResolver.....
分类:编程语言   时间:2014-05-08 13:24:33    阅读次数:461
基础学习
Datetime:2014-05-0717:04:53PYTHON 号称胶水语言。一,表,元组,字典区别:表:可以修改a=[1,3,4,5]a[2]=5print a#[1,3,5,5]View Code元组:不能被修改a=(1,2,3)a=(a[0],2,a[1])print a#1,2,2#数组...
分类:其他好文   时间:2014-05-08 12:27:37    阅读次数:244
istview android:cacheColorHint,android:listSelector属性作用(转)
原文ListView是常用的显示控件,默认背景是和系统窗口一样的透明色,如果给ListView加上背景图片,或者背景颜色时,滚动时listView会黑掉,原因是,滚动时,列表里面的view重绘时,用的依旧是系统默认的透明色,颜色值为#FF191919,要改变这种情况,只需要调用listView的se...
分类:移动开发   时间:2014-05-08 12:10:42    阅读次数:339
viewFlipper动态加载
同一时间内,只有2个view,index分别为0和1删掉一个后加入一个,保持动态更新if (viewFlipper.getChildCount() > 1) { viewFlipper.removeViewAt(0); } viewFlipper.add...
分类:其他好文   时间:2014-05-08 12:07:45    阅读次数:298
iOS下子控件中的子控件的位置转换成在父控件的位置
CGRect focusFrame =[_scrollViewconvertRect:_joinView.frametoView:self.view];这里_scrollView是self.view的子控件_joinView是_scrollView的子控件,这里是计算出_joinView在self....
分类:移动开发   时间:2014-05-08 11:59:01    阅读次数:335
boost::bind实践2——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
直接代码:代码段1: 1 #include 2 #include 3 #include 4 5 class some_class 6 { 7 public: 8 typedef void result_type; 9 void print_string(const ...
分类:编程语言   时间:2014-05-08 09:49:53    阅读次数:368
IOS将UIView转化为UIImage
+(UIImage*)createImageFromView:(UIView*)view { //obtain scale     CGFloat scale = [UIScreen mainScreen].scale; 开始绘图,下面方法,第一个参数表示区域大小。第二个参数表示是否是非透明的。如果需要显示半透明效果,需要传NO,否则传YES。第三个参数就是屏幕密度了     U...
分类:移动开发   时间:2014-05-07 21:43:16    阅读次数:349
boost::bind实践
第一部分源码为基础实践: 1 /*Beyond the C++ Standard Library ( An Introduction to Boost )[CN].chm*/ 2 /*bind的用法*/ 3 4 #include 5 #include 6 #include 7 #includ...
分类:其他好文   时间:2014-05-07 21:27:36    阅读次数:536
android中调用系统的发送短信、发送邮件、打电话功能
1 调用发送短信功能:Uri smsToUri = Uri.parse("smsto:");Intent sendIntent = new Intent(Intent.ACTION_VIEW, smsToUri);sendIntent.putExtra("address", "123456");//...
分类:移动开发   时间:2014-05-07 20:37:58    阅读次数:639
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!