码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
57、微信-我Fragment_Profile
xml version="1.0" encoding="utf-8"?>LinearLayoutandroid:gravity="center_horizontal"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"xmlns:android="htt...
分类:微信   时间:2016-05-12 20:17:36    阅读次数:455
iOS开发中一些常用的方法
1.压缩图片#pragma mark 处理图片 - (void)useImage:(UIImage *)image { NSLog(@"with-----%f heught-----%f",image.size.width,image.size.height); float scales = image.size.height / image.size.width; /...
分类:移动开发   时间:2016-05-12 20:08:23    阅读次数:241
CentOS6.8 upgrade gcc to gcc4.8
CentOS6.8自带的gcc版本为4.4.7,有些年代了,一些新软件要用到的库没有,最新的gcc4.8.2已经放出来了,于是下载源代码安装了一个试试。 1.首先把旧的gcc相关的编译工具安装好 [javascript] viewplaincopy6.5 下源代码安装gcc 4.8.2" height="12" width="12" style="border-style:none...
分类:其他好文   时间:2016-05-12 20:07:37    阅读次数:179
自定义view+onTouch
自定义view 布局     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_verti...
分类:其他好文   时间:2016-05-12 20:02:07    阅读次数:311
关于clientHeight,offsetHeight等小笔记
遇到一个有个问题:关于clientHeight,offsetHeight,scrollHeight,以及height,contentHeight(width也一样)的区别。 这里有参考http://stackoverflow.com/questions/21064101/understanding-offsetwidth-clientwidth-scrollwidth-and-height-res...
分类:其他好文   时间:2016-05-12 19:40:15    阅读次数:213
Android_ListView上拉加载更多(ListView分页功能)
先上效果图 加载完数据 首先定义一个底部正在加载的布局footer_layout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_p...
分类:移动开发   时间:2016-05-12 19:39:03    阅读次数:397
让a标签上传文件
最近项目中需要写一个功能,如图:我这边采用的结构是 选择文件 css 就是将input标签透明的设置0,这样的话在点击a的时候同时可以触发到input[type=file]实现了点击的上传文件的效果。 .select_file{width: 168px;height: 43px;display: block;border-radius: 25px;marg...
分类:Web程序   时间:2016-05-12 19:23:11    阅读次数:764
如何根据字数多少获取字符串对应高度
这种方法一般用于tableview,制作类似于微博浏览,空间展示动态的功能。表的高度根据图片以及字符串字数确定。 通过文字展示的最大宽度以及文字字体大小确定文字展示的高度 - (CGRect)getHeightOfText:(NSString *)text width:(CGFloat)width font:(UIFont *)font{ /* width:设定的字符...
分类:其他好文   时间:2016-05-12 18:47:14    阅读次数:124
【黑马Android】(09)电话听听器
电话窃听器 用服务开发 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout...
分类:移动开发   时间:2016-05-12 18:44:34    阅读次数:245
Android中使用shape
Android中使用shapeshape的属性有: - corners–圆角 - padding–内边距 - size(height、width)–设置宽高 - stroke–描边 - gradient–渐变 - solid–填充分别介绍1.corners–圆角<corners android:radius="10dp" android:bottomLeftRadius=...
分类:移动开发   时间:2016-05-12 18:32:21    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!