上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 166 下一页
摘要: 贴上一个我自己用过的阻尼滑动的ScrollView,像QQ里面那种滑动效果,尽管不是我写的,可是我认为还能够,贴出来做个记录,实用到的时候免得到处去找。 代码例如以下: /* * Copyright (C) 2006 The Android Open Source Project * * Licen 阅读全文
posted @ 2017-07-03 17:47 yutingliuyl 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 重用 ListView Item ListView创建时其会创建屏幕可容纳数量的 Item。ListView 滚动时,刚消失的 item 会被保存到回收池中。新出现的 item 从回收池中获取避免反复创建,这个回收池由 ListView 维护。从回收池取出 item 会传递给 Adapter 的 g 阅读全文
posted @ 2017-07-03 16:07 yutingliuyl 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 比赛的时候以为这是一道动态维护树的中心,看了题解发现自己想错了。公共祖先的题目确实是少 这次学习了一下set 发现有非常多使用简便的地方 #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #incl 阅读全文
posted @ 2017-07-03 14:31 yutingliuyl 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 在开发过程中经经常使用到Log。我们常写的一种方式就是自己定义一个LogUtil工具类 private static boolean LOGV = true; private static boolean LOGD = true; private static boolean LOGI = true 阅读全文
posted @ 2017-07-03 12:09 yutingliuyl 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 仿支付宝/微信的password输入框效果GridPasswordView解析,把一些设置和一些关键的地方列了出来,方便大家使用,可能能够省一部分的时间,也算是自己的积累吧。 1.password框能够输入的类型PasswordType public enum PasswordType { NUMB 阅读全文
posted @ 2017-07-03 11:24 yutingliuyl 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 题意:给出n个(不同长度的)棍子,问能不能将他们构成一个正方形。 策略:深搜。 hdoj 1455的简化版 代码: #include <stdio.h> #include <string.h> #include <algorithm> #define M 25 using namespace std 阅读全文
posted @ 2017-07-03 10:29 yutingliuyl 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 在安装mysql 5.5.xx 时运行cmake命令是出现CMake Error: The source directory does not appear to contain CMakeLists.txt.的错误,刚開始以为是cmake版本号有问题,到最后才发现是当前文件夹错了。 在运行cmak 阅读全文
posted @ 2017-07-03 10:15 yutingliuyl 阅读(2884) 评论(0) 推荐(0) 编辑
摘要: HTTP无状态协议 首先我们要知道: HTTP协议是无状态协议。 我们知道HTTP协议就是server通过Request从浏览器接收和Response向浏览器输出的这么一个过程(浏览器和server的交互过程)。 所谓无状态也就是完毕一个过程后(client和server 就断开了),下一个过程假设 阅读全文
posted @ 2017-07-03 08:48 yutingliuyl 阅读(157) 评论(0) 推荐(0) 编辑
摘要: android培训、java培训、java学习型技术博客、期待与您交流。 一、关于java中的集合类 首先看一下,大致的框架流程图 通过这些我们能够看出来,通常我们常常採用的vector、arraylist、hashset。treeset,hashmap。hashtable,treemap、link 阅读全文
posted @ 2017-07-03 08:02 yutingliuyl 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 扫码关注微信公众号,获取最新资源 经历了一天的工作。我又来更新啦。。。白天手欠,把上一个给删了。明天重写吧。。 废话不多说。我们先去Unity里创建一个能够输入username和password的登录窗体 然后给登录button加入代码 using UnityEngine; using System 阅读全文
posted @ 2017-07-02 21:25 yutingliuyl 阅读(490) 评论(0) 推荐(0) 编辑
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 166 下一页