摘要: 问过大神,大神说用fragment或者activity都可以实现,那么就要自己考虑了。首先说下设计思路以下初步设想,1,仿照弘扬的Android 教你打造炫酷的ViewPagerIndicator 不仅仅是高仿MIUI,另一种activity跳转,这个太多了不打算用这个,等看遇到什么问题再考虑2,内... 阅读全文
posted @ 2015-06-26 10:43 puckpuck 阅读(704) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired bythis... 阅读全文
posted @ 2015-06-25 19:33 puckpuck 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1,titlebar button + textview实现 在layout文件夹内创建titlebar.xml文件 创建一个水平linearlayout ,将button与text放进去,根绝上一节的 自适应特性 设置 layout-width 与layout-height 值... 阅读全文
posted @ 2015-06-25 17:17 puckpuck 阅读(194) 评论(0) 推荐(0) 编辑
摘要: introduction:就是为了实现这坨:好戏开始了: 上面一个titlebar,上面一个button,监听button onclick事件,发生时 跳到初始页面对应的那个activity。我靠,写webapp写惯了,安卓组件没有这些,怎么办?! 没招,简单的线性布局没法实现 何... 阅读全文
posted @ 2015-06-24 14:44 puckpuck 阅读(253) 评论(0) 推荐(0) 编辑
摘要: app设计 基本功能表单上传访问本地摄像头拍照访问本地相册长传与下载文件访问webservicehttp通信post ,get本地sql数据库存储操作 2,设计初始页面(九宫格,点击任意按键跳转到相应服务)页面2 人力资源其他页面待考虑 3,tips需要用到技术sqlite(已验证)http通信... 阅读全文
posted @ 2015-06-24 14:15 puckpuck 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 这个鸟玩意用了迭代,其实不太好浪费空间,数据多了还容易死,有人用stack还没研究 昨天代码有错误,num在运算后没有清零,有几个标点错误,在程序中红体,但是昨天date去了这个还是没有测,我肉眼debug的这个是600mm的还没看明白https://leetcode.com/discuss/394... 阅读全文
posted @ 2015-06-09 15:44 puckpuck 阅读(757) 评论(0) 推荐(0) 编辑
摘要: Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文
posted @ 2015-06-08 22:07 puckpuck 阅读(368) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int singleNumber(int[] nums) { int ret = nums[0]; for (int i = 1; i < nums.length; i++) { ret ^= nums[i]; ... 阅读全文
posted @ 2015-06-08 16:23 puckpuck 阅读(183) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public String addBinary(String a, String b) { int i = a.length()-1; int j = b.length()-1; int n = j>i?j:i; int su... 阅读全文
posted @ 2015-06-08 13:23 puckpuck 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 直观来讲,好坏体验在用户体验上, 首先是功能实现, 然后是性能好, 接下来是 设计合理。从开发者角度来看 算法- 空间时间复杂度 程序设计- 类的设计,设计模式,低耦合高聚合 ... 阅读全文
posted @ 2015-05-25 09:00 puckpuck 阅读(727) 评论(0) 推荐(0) 编辑