一、最近的一个项目中有遇到时间刻度盘的需求,在网上没找到合适的,于是自己就花点时间实现了,现在分享出来,效果如下图:
在介绍如何实现之前,先大概介绍一个这个时间刻度盘的功能:
1、显示当前时间,并且可以左右拖动至上一天或者下一天,
2、根据传入的时间块来绘制蓝色部分
二、代码实现
public class ScalePanel extends View {
public inte...
分类:
移动开发 时间:
2015-05-19 10:41:49
阅读次数:
605
error LNK2019: 无法解析的外部符号 "class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > __cdecl Public_Func::split(class
std::basic_string,class std::allocator >,class std...
分类:
其他好文 时间:
2015-05-19 10:30:15
阅读次数:
334
【Class中,可能包含的成员】常量,字段,实例构造器,类型构造器,方法,操作符重载,转换操作符,属性,事件,类型(Class)
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
分类:
其他好文 时间:
2015-05-19 10:11:11
阅读次数:
113
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
分类:
其他好文 时间:
2015-05-19 10:09:22
阅读次数:
136
/**
* 书本:《Thinking In Java》
* 功能:捕获转换
* 文件:CaptureConversion.java
* 时间:2015年5月19日07:52:43
* 作者:cutter_point
*/
package Lesson15_generices;
public class CaptureConversion
{
static void f1(Holder hol...
分类:
编程语言 时间:
2015-05-19 08:55:07
阅读次数:
127
//: net/mindview/util/TwoTuple.java
package net.mindview.util;
public class TwoTuple {
public final A first;
public final B second;
public TwoTuple(A a, B b) { first = a; second = b; }
public...
分类:
编程语言 时间:
2015-05-19 08:54:56
阅读次数:
151
public class Solution { public int maxArea(int[] height) { if (height == null || height.length < 2) { return 0; } ...
分类:
其他好文 时间:
2015-05-19 08:51:27
阅读次数:
125
好久不练手了,注意boolean array default 是falsepublic class Solution { public int countPrimes(int n) { if(n<=2) return 0; boolean[] a = ne...
分类:
其他好文 时间:
2015-05-19 08:47:46
阅读次数:
90
public class Solution { public ArrayList> threeSum(int[] nums) { ArrayList> res = new ArrayList>(); if (nums == null || nums.length ...
分类:
其他好文 时间:
2015-05-19 08:46:58
阅读次数:
137