说的有点乱,先看个图把其实这个constrant的目的就是控制两个方形的控件上方和下方的空白大小。对于每一个方块来说,他们上方和下方的空白是相同的。这种“居中”的设计到处可见。一个控件想实现这种居中和简单,只需要建立一个参考的view,比如这里的h1或h2,再调整好参考view的高度,最后设置控件和...
分类:
移动开发 时间:
2014-05-08 19:34:53
阅读次数:
486
前面写了个View画圆弧,为了让他和底层图片效果融合,采用先把圆弧画到和图片一样大小的画布上,然后用canvas的变换位图方法映射过去。
bitmapWithReflection = Bitmap.createBitmap(swidth, sheight, Config.ARGB_88...
分类:
其他好文 时间:
2014-05-08 19:22:16
阅读次数:
293
源表(table1)数据{A:string B:array C:string}A B C190
[1030,1031,1032,1033,1190] select id191 [1030,1031,1032,1033,1190] select
id希望的结果是:190 1030 select id1...
分类:
其他好文 时间:
2014-05-08 14:19:57
阅读次数:
311
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 中,我们在返回逻辑视图时,框架会通过 viewResolver
来解析得到具体的 View,然后向浏览器渲染。假设逻辑视图名为 hello,通过配置,我们配置某个 ViewResolver 如下:Xml代码:
假如逻辑试图名为 "hello",因此 viewResolver.....
分类:
编程语言 时间:
2014-05-08 13:24:33
阅读次数:
461
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
- (BOOL)gestureRecognizer:(UIGestureRecognizer
*)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{ // 获取点击的view的类名
NSLog(@"%@", NSStringFromCla.....
分类:
其他好文 时间:
2014-05-07 20:25:47
阅读次数:
404
以微博分享为例:
1.public void onClickShare(View view) {
2.
3. Intent intent=new Intent(Intent.ACTION_SEND);
4. intent.setType("image/*");
5. intent.putExtra(Inten...
分类:
移动开发 时间:
2014-05-07 15:59:21
阅读次数:
396
案例4视图viwer拓扑图:1.查看帮助[root@centos~]#vim/usr/share/doc/bind-9.8.2/sample/etc/named.conf[root@host2~]#cd/var/named/chroot/etc2.[root@centosetc]#vimnamed.conf添加视图:36view"lan-view"37{38zone"."IN{39typehint;40file"named.ca";41};42zone"ab.com"{43t..
分类:
系统相关 时间:
2014-05-07 15:33:16
阅读次数:
618
http://kczx.whu.edu.cn/G2S/Template/View.aspx?courseId=27617&topMenuId=92187&action=view&type=&name=&menuType=1&curfolid=223168
分类:
其他好文 时间:
2014-05-07 14:20:24
阅读次数:
273