码迷,mamicode.com
首页 >  
搜索关键字:getheight    ( 219个结果
android:ScrollView滑动到底部显示加载更多
这是效果 主要是onTouchListener监听事件,监视什么时候滑到底部 同时要理解getMeasuredHeight和getHeight的区别 getMeasuredHeight:全部的长度 包括隐藏的 getHeight:在布局中展示出来的长度 布局文件: <FrameLayout xmlns:android="http://schemas.android.com/apk/...
分类:移动开发   时间:2016-02-25 06:50:02    阅读次数:221
Android Bitmap圆角
代码如下: public Bitmap transform(Bitmap source) { int size = Math.min(source.getWidth(), source.getHeight()); int x = (source.getWidth()...
分类:移动开发   时间:2016-01-25 19:35:31    阅读次数:222
11.7---叠罗汉表演节目(CC150)
1,牛客网第一题:这其实跟找最长递增子序列是一个东西。注意的地方是,返回的是最大的dp,而不是dp[N-1]。答案:public static int getHeight(int[] men, int n) { // write code here int res = 0...
分类:其他好文   时间:2016-01-05 01:23:21    阅读次数:162
6.下拉刷新
下拉刷新下拉刷新------- 1.addHeaderView必须在setAdapter之前调用 2.将paddingTop设置一个headerView高度的负值去隐藏它 getHeight()和getMeasuredHeight()的区别: getMeasuredHeight():获取测量完的高度...
分类:其他好文   时间:2015-12-12 23:14:39    阅读次数:279
Android在onCreate中获取控件的宽高
在某些需求下,我们需要在onCreate的时候就获取到控件的宽高,但是如果直接用view.getWidth()或view.getHeight()会得到0.这是因为在onCreate执行的时候,控件还没有被绘制出来.利用下面的方法可以获得控件的宽高: ViewTreeObserver vto = zo...
分类:移动开发   时间:2015-12-12 18:49:57    阅读次数:153
左滑手势
左滑手势(引导页的左滑手势)double x = driver.manage().window().getSize().getWidth();//x的值为安卓设备的宽double y = driver.manage().window().getSize().getHeight();//y的值为安卓设...
分类:其他好文   时间:2015-11-14 20:36:00    阅读次数:224
bitmap1 = bitmap2导致bitmap1不能使用一致报回收错误解决
public Bitmap createCanNotRecycleBitmap(Bitmap bitmap) { int fgWidth = bitmap.getWidth(); int fgHeight = bitmap.getHeight(); //create the new...
分类:其他好文   时间:2015-11-10 19:08:39    阅读次数:255
10.下拉刷新、加载更多、标记已读、轮播条、缓存
下拉刷新、加载更多、标记已读、轮播条、缓存下拉刷新------- 1.addHeaderView必须在setAdapter之前调用 2.将paddingTop设置一个headerView高度的负值去隐藏它 getHeight()和getMeasuredHeight()的区别: getMeasured...
分类:其他好文   时间:2015-10-29 00:32:07    阅读次数:249
Android 坐标与宽高研究getLeft() getTop() getRight()和getBottom()
把view看做一个矩形,分别表示的是一个view的左边,上边,右边,下边距离他的父组件的距离。getRight() =getLeft() + getWidth()getBottom()= getTop() + getHeight()一、坐标研究一每个view group包含一个宽度和高度(layou...
分类:移动开发   时间:2015-09-18 10:24:34    阅读次数:488
CImage灰度化
BOOL ImageToGray(const CImage& imgSrc, CImage& imgDst){ int maxY = imgSrc.GetHeight(); int maxX = imgSrc.GetWidth(); if (!imgDst.IsNull()) ...
分类:其他好文   时间:2015-09-17 14:48:34    阅读次数:248
219条   上一页 1 ... 11 12 13 14 15 ... 22 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!