码迷,mamicode.com
首页 >  
搜索关键字:vertical    ( 1534个结果)
安卓开发中的线性布局及重要属性
线性布局是安卓默认的布局方式 ,分为垂直线性布局和水平线性布局,分别表示为android:orientataion=”vertical”和android:orientation=”horizontal”。前者表示控件一垂直方式排列,即每行放一个控件;即所有控件都放在同一行,超出部分会被遮住 ?xml ...
分类:移动开发   时间:2016-06-17 22:21:33    阅读次数:390
线性布局LinearLayout的那些事儿
(一)LinearLayout常用属性 1. orientation —–布局组件中的排列方式,有水平(horizontal),垂直(vertical 默认); 2. gravity——-控制组件所包含的子元素的对齐方式,可多个组合,如:(left | buttom); 3. layout_gravity——-控制该组件在...
分类:其他好文   时间:2016-06-17 06:21:52    阅读次数:324
样式总结
(1) line-height对单独文字有效,但是当文字与图片并排时 line-height就会失效,给img加vertical-align: middle; (2)两个相邻的元素margin会重复,但是用chrome开发者工具审核单独一个元素的时候margin是存在的,只不过最终结果margin视 ...
分类:其他好文   时间:2016-06-16 21:43:44    阅读次数:163
quick-cocos2dx TableView用法
1、创建tableview self.uiRankList = cc.TableView:create(cc.size(720, 500)) self.uiRankList:setDirection(cc.SCROLLVIEW_DIRECTION_VERTICAL) self.uiRankList: ...
分类:其他好文   时间:2016-06-14 13:45:45    阅读次数:1948
Leetcode题目:Container With Most Water
题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e ...
分类:其他好文   时间:2016-06-14 13:43:50    阅读次数:146
【leetcode】11. Container With Most Water
题目描述: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:其他好文   时间:2016-06-14 06:19:00    阅读次数:150
Android实现滑动的几种方法
下面通过一个例子来总结实现滑动的几种方式,例子的主要功能就是让我们的自定义View能够随着手指的移动而移动。 布局文件如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width...
分类:移动开发   时间:2016-06-13 20:41:51    阅读次数:269
Flex布局
Flex是Flexible Box的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性。设为Flex布局以后,子元素的float、clear和vertical-align属性将失效。 任何一个容器都可以指定为Flex布局。 flex-direction 设置主轴对齐方式 默认 row x轴从左到 ...
分类:其他好文   时间:2016-06-12 20:30:44    阅读次数:514
Android初级教程小案例之单选框RadioGroup与复选框CheckBox
Android里面的单选框和html中的其实是一样的效果。这里用到两个控件:CheckBox和RadioGroup。直接上代码: radio.xml布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" andro...
分类:移动开发   时间:2016-06-11 07:08:18    阅读次数:308
CSS---解决浏览器兼容性
注:像Firefox等现代浏览器可使用vertical-align属性。而IE6、IE7不识别vertical-align属性,故设置*margin-top:12px,加*的属性是专门给IE6、IE7使用的。这样即解决浏览器兼容性的问题了。 ...
分类:Web程序   时间:2016-06-09 22:17:14    阅读次数:215
共1534条   上一页 1 ... 80 81 82 83 84 ... 154 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!