- 博客(6)
- 收藏
- 关注
原创 Iterater接口
public class IteratorExample {/** * Iterator(Collection的方法、迭代器) * Iterator接口主要定义了两个方法 * hasNext() 如果仍有元素要迭代返回true * next()返回下一个迭代的元素 */ public static void main(String[] args) { //创建集合,添加元素 Collectio...
2018-03-16 23:07:38
406
原创 Notification(通知栏)的实现
/** * @function Notification * @author JRwestbrook * */public class NotificationActivity extends Activity { NotificationManager mNotificationManager; private static final int ID_NOTIFICATION =
2015-03-31 15:05:33
491
原创 ViewPage and Fragment(仿微信)
/** * @function 整理代码 * @author JRwestbrook * @time 2014-12-31 15:00 * @comment 当Viewpager 滑动的时候,下面的按钮随着ViewPager位置改变(实为变色) */页面效果如下图(非动态):1.首先创建三个fragmentfragment_first.xml<Line
2014-12-31 15:24:08
805
原创 DrawChartWithPaint(自定义View)
/**@function 整理代码@time 2014-12-31 13:37@author JRwestbrook@QQ 990021331*/用paint画统计图,即先自定义View继承Viewpackage com.example.view;import android.content.Context;import android.graphics.Canvas;i
2014-12-31 13:58:22
645
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人