码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
Android学习笔记之Theme主题的修改设置
(1)布局文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height...
分类:移动开发   时间:2015-01-16 16:43:49    阅读次数:138
熟悉AndroidAPI系列15——ListView
三个关键点xml布局设置数据和简单适配器自定义适配器XML布局主Activity布局ListView条目的XML布局主Activity布局,只需要加入一个ListView控件,特别要注意各个控件的layout_width和layout_height的设定 1 6 7 11 ...
分类:移动开发   时间:2015-01-16 16:33:11    阅读次数:134
Android学习笔记之ListView的简单使用
(1) <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma...
分类:移动开发   时间:2015-01-16 14:43:14    阅读次数:182
C#的TextBox获取行高
当TextBox使用多行之后,如果想获取每行的高度,似乎有点问题,TextBox.Height获取的是控件的高度,而我们常做的是根据行的数量来决定是否要显示滚动条如下: //不能直接获取每行的高度,但我们可以获取textbox里面字体的高度,每个字的高度不就是行高了吗 int fontHeigh.....
分类:Windows程序   时间:2015-01-16 12:46:41    阅读次数:464
Unity3D-各种坐标系
世界坐标 世界坐标系,是现实物体在空间的位置。 获取GameObject的世界坐标:transform.position 世界坐标转屏幕坐标 Vector3 screenPos = Camera.WorldToScreenPoint(worldPos.Position); 屏幕坐标 屏幕左下角为(0,0),右上角为(Screen.width,Screen.height) 鼠标...
分类:编程语言   时间:2015-01-16 11:24:10    阅读次数:151
CSS使用注意(1):关于line-height理解
Line-height是前端用语,经常被前端开发人员经常使用.line-height设置1.5和150%有什么区别?这是一个比较常见的前端面试题.定义: line-height指的是文本行基线间的距离(文字尺寸和行距之间的和). 但是文本之间的空白距离不仅仅是行高决定的,同时也受字号的影响.基线:基...
分类:Web程序   时间:2015-01-16 09:54:43    阅读次数:217
后缀数组之最长公共前缀
#include #define maxn 100 int main() {     int rank[maxn],height[maxn],sa[maxn]= {0,3,1,4,2},s[maxn]= {1,2,3,2,3};//s串可以看成abcbc     int i,j,k=0;     for(i=0; i         rank[sa[i]]=i;     for(i...
分类:编程语言   时间:2015-01-15 22:08:54    阅读次数:257
[LeetCode] Convert Sorted List to Binary Search Tree DFS,深度搜索
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.Hide TagsDepth-first SearchLinked List 这....
分类:其他好文   时间:2015-01-15 21:47:04    阅读次数:171
php实现图片居中裁剪并缩放
1 getImageWidth(); 10 $height = $Image->getImageHeight(); 11 //判断该相片是否长宽相等 12 if($width != $height){ 13 //不相等则先以最小边为长度截取图片中心部分 1...
分类:Web程序   时间:2015-01-15 20:10:38    阅读次数:146
EXTJS 组件开发(完整例子)
目标:EXTJS组件开发,从component基础实现一个TAB控件。 使用EXTJS版本为5.0。测试通过。 这个例子还很初级,仅仅是说明通过示例使用EXTJS进行组件开发的一个基本思路。 EXT JS TEST .tabsDiv{ width:500px;height:450px; margin-top: 0px; margin-left: 0px...
分类:Web程序   时间:2015-01-15 18:17:26    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!