自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

jameskaron的专栏

宁静致远

  • 博客(6)
  • 资源 (2)
  • 收藏
  • 关注

原创 关于ThreadPoolExecutor 调用RejectedExecutionHandler的机制

当我们创建线程池并且提交任务失败时,线程池会回调RejectedExecutionHandler接口的rejectedExecution(Runnable task, ThreadPoolExecutor executor)方法来处理线程池处理失败的任务,其中task 是用户提交的任务,而executor是当前执行的任务的线程池。可以通过代码的方式来验证。1、线程池工厂: ?...

2015-04-28 17:50:59 156

原创 视频的播放

1.<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height...

2015-04-17 18:14:21 97

原创 音频的播放

1.<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heigh...

2015-04-13 17:58:57 65

原创 自定义动画播放

1.新建一anim文件夹,里面建立一myanim.xml<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:fromAlpha="0.1"

2015-04-13 16:44:20 97

原创 Matrix操作贴图

public class MyView extends View { //图片的引用 Bitmap myBitmap; Paint paint; public MyView(Context context, AttributeSet attrs) { super(context, attrs); //调用初始化 initBitmap(); } /...

2015-04-13 15:27:06 151

原创 JAVA的Date类与Calendar类【转】

Date类在JDK1.0中,Date类是唯一的一个代表时间的类,但是由于Date类不便于实现国际化,所以从JDK1.1版本开始,推荐使用Calendar类进行时间和日期处理。这里简单介绍一下Date类的使用。1、使用Date类代表当前系统时间                   Date d = new Date();                   System.out.p...

2015-04-03 12:08:21 83

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除