暂无个人介绍
<p>简单说下Executors类,提供的一系列创建线程池的方法:</p> <p>他们都有两个构造方法</p> <h4>1. --------newFixedThreadPool</h4> <h4>(创建一个定长线程池,可控制线程最大并发数,超出的线程会在队列中等待。)</h4> <p>public static ExecutorService newFixedThreadPool
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(85,85,85); font-family:宋体,'Arial Narrow',arial,serif; font-size:14px; line-height:28px; clear:both; heig
<p style="color:rgb(54,46,43); font-family:Arial; font-size:14px; line-height:26px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px"> <span style="font-family:Helvetica,Tah
<p style="margin-top:0px; margin-bottom:1em; padding-top:0px; padding-bottom:0px; font-size:14px; color:rgb(51,51,51); font-family:'Hiragino Sans GB','WenQuanYi Micro Hei',sans-serif; line-height:
<h6 style="color:rgb(51,51,51); font-family:Arial; line-height:26px"><span style="font-size:14px">1、概述</span></h6> <p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26
<p style="padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; line-height:26px; font-size:14px; color:rgb(68,68,68); font-family:Arial"> <span style="padding:0px; margin:0px">
<div class="container" style="padding-right:15px; padding-left:15px; margin-right:auto; margin-left:auto; width:1170px"> <div class="hero-unit" style=""> <h3 id="1-" style="font-family:inherit;
<p style="color:rgb(54,46,43); font-family:Arial; font-size:14px; line-height:26px"> 1.Build -> Generate Signed APK...,打开如下窗口</p> <p style="color:rgb(54,46,43); font-family:Arial; font-size:1
<span style="color:rgb(70,70,70); font-family:simsun; font-size:14px; line-height:21px; background-color:rgb(229,226,192)">1.使用魅族的demo里的SmartBarUtils.java</span> <div style="color:rgb(70,70,70);
<p style="margin-top:0px; margin-bottom:15px; color:rgb(85,85,85); font-family:'Microsoft Jhenghei','Microsoft Yahei','Helvetica Neue',HelveticaNeue,Arial,sans-serif; font-size:15px; line-height:2
<h2 id="major1" style="margin:5px 0px; padding:0px; border:0px; outline:0px; vertical-align:baseline; font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial; font-
<p align="center" style="color:rgb(51,51,51); font-size:14px; margin-top:0px; margin-bottom:8px; padding-top:0px; padding-bottom:0px; border:0px; list-style:none; word-wrap:break-word; word-break:
<p style="text-indent:15px; margin-top:0px; margin-bottom:1em; font-size:15px; word-break:break-word; white-space:pre-wrap; word-wrap:break-word; line-height:1.7em; overflow:auto; color:rgb(51,51,
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> PackageManagerService主要是一个包的管理服务,在开机的时候会解析以前保存的一些安装包的相关数据,a
<p style="margin-top:0px; margin-bottom:1.1em; padding-top:0px; padding-bottom:0px; font-family:'microsoft yahei'; font-size:14px; line-height:26px"> 分布式系统中的RPC请求经常出现乱序的情况。 <br style=""> 写一个算法来将
<p style="margin:10px auto; padding-top:0px; padding-bottom:0px; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:14px; line-height:21px"> json相信大家都用的多,jsonp我就一直没有机会用到,但也经常看到,只知道是“用来跨域的”
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(85,85,85); font-family:'microsoft yahei'; font-size:15px; line-height:35px"> 在Android中实现异步任务机制有两种方式,Han
<p style="color:rgb(54,46,43); font-family:Arial; font-size:14px; line-height:26px"> <span style="font-size:18px">Activity, Service,Task, Process and Thread之间到底是什么关系呢?</span></p> <p style="color
<p style="color:rgb(51,51,51); font-family:微软雅黑,Arial,宋体; font-size:14px; margin-top:20px; margin-bottom:20px; padding-top:0px; padding-bottom:0px; line-height:1.8em; text-indent:2em"> 近日,Android
<p style="color:rgb(54,46,43); font-family:Arial; font-size:14px; line-height:26px"> <span style="color:rgb(51,51,51); font-family:arial,sans-serif,verdana,helvetica; line-height:21px; background
<p style="margin-top:18px; margin-bottom:18px; color:rgb(51,51,51); font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,STHeiti,sans-serif; font-size:14px; line-height:22.3999996185303px"> 线
<p style="margin:10px auto; font-family:Tahoma,Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:13px; line-height:19.5px; background-color:rgb(224,223,227)"> <span style="color:rgb(68,68,68);
<p style="color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:13.63636302948px; line-height:19.0909080505371px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0p
<p style="margin-top:0px; margin-bottom:0px; padding-top:8pt; padding-bottom:8pt; font-family:微软雅黑; font-size:17.27272605896px; line-height:26.0000019073486px"> <big><strong><span style="color:rg
<p style="margin-top:0px; margin-bottom:10px; color:rgb(71,71,71); font-family:'microsoft yahei'; font-size:14px; line-height:25.9200000762939px; text-align:center"> <img src="http://img.ptcms.cs
<p style="margin-top:1.6em; margin-bottom:1.6em; padding-top:0px; padding-bottom:0px; font-family:inherit; font-size:14px; font-style:inherit; font-variant:inherit; line-height:inherit; color:rgb(
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> 用过iphone的朋友都知道,iPhone有个圆球辅助工具,<span style="font-family:aria
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> 这篇来分享一下绘制手势密码的实现(主要是设置手势密码、校验手势密码):</p> <p style="margin-t
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> 最近项目要做一个,类似淘宝手机客户端的,选择收货地址的三级联动滚动选择组件,下面是它的大致界面截图:</p> <p
<div class="para" style="color:rgb(51,51,51); font-size:13.63636302948px; margin:15px 0px 5px; text-indent:2em; line-height:24px; font-family:arial,宋体,sans-serif"> <span style="font-size:18px">XM
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:13.63636302948px; line-height:26px"> Android Studio安装插件的方式其实和Eclipse大同小异。废话不多说,直接上图:
<h2 style="margin:0px; padding:0px; color:rgb(51,51,51); font-family:Arial; line-height:26px"> <span style="color:rgb(204,0,0)"><span style=""><span lang="zxx">参考: <a target="_blank"
<p style="margin-top:0px; margin-bottom:1.1em; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:13.63636302948px; line-height:26px"> 如果你不知道事件总线是什么,那么没有关系,下面我们先来看这么一个场景:</p> <blo
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:13.63636302948px; line-height:26px"> getScrollY()方法返回的是当前可见区域的顶端距整个页面顶端的距离,也就是当前内容滚动
<p style="color:rgb(54,46,43); font-family:Arial; font-size:13.63636302948px; line-height:26px"> <img alt="大笑" src="http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif" st
<table cellspacing="0" class="t_table " style="word-wrap:break-word; empty-cells:show; border-collapse:collapse; border:1px solid rgb(227,237,245); table-layout:auto; width:740px; color:rgb(68,68,
<p style="color:rgb(54,46,43); font-family:Arial; font-size:14px; line-height:26px"> 在使用PopupWindow的时候,有一个不好的地方就是不太好设置弹出窗体的大小。如果指定绝对大小,那么对于不同分辨率不同尺寸的手机来说,显示出来效果会不同,从而导致用户体验不佳。</p> <p style="colo
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 其实,在真正的项目实战当中如果仅仅是使用硬盘缓存的话,程序是有明显短板的。而如果只使用内存缓存的话,程序当然也会有很大的缺陷。因此,一个优秀的程序必然会将内存缓存和硬盘缓存结合到一起使用,那么本篇文章我们就来看一看,如何
<blockquote style="font-family:Arial; font-size:14px; line-height:26px; margin:0px 0px 0px 40px; border:none; padding:0px"> <p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-b
<p style="margin:5px auto; padding-top:0px; padding-bottom:0px; font-size:14px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; line-height:21px"> -injars androidt
<span style="color:rgb(51,51,51); font-family:Arial; line-height:26px; font-size:18px">今天终于完成了近一个月的App开发工作,对程序进行混淆导出签名apk包时,却出现了如下的错误:</span><br style="color:rgb(51,51,51); font-family:Arial; font
<p style="color:rgb(51,51,51); font-family:Arial; font-size:13.63636302948px; line-height:26px"> Parcel 在英文中有两个意思,其一是名词,为包裹,小包的意思; 其二为动词,意为打包,扎包。邮寄快递中的包裹也用的是这个词。Android采用这个词来表示封装消息数据。这个是通过IBinder
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> 大家都知道,现在安装Android系统的手机版本和设备千差万别,在模拟器上运行良好的程序安装到某款手机上说不定就出现崩
<p style="font-size:14px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; border:0px; outline:0px; vertical-align:baseline; orphans:4; color:rgb(68,68,68); font-family:'Tim
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> 首先我们还是来看一些案例,还是拿搜狐新闻客户端,因为我天天上下班没事爱看这个东东,上班又没时间看新闻,上下班路途之
<p style="word-wrap:break-word; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(68,68,68); font-family:'Microsoft Yahei',Tahoma,Simsun; font-size:14px; line-heigh
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> gif图动画在android中还是比较常用的,比如像新浪微博中,有很多gif图片,而且展示非常好,所以我也想弄一个。经
<h2 style="margin:0px; padding:0px; font-family:Arial; line-height:26px">概述</h2> <div style="font-family:Arial; font-size:14px; line-height:26px"> <p style="margin-top:0px; margin-bottom:0px; pa
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"> 在使用到自定义View的xml布局文件中需要加入xmlns:前缀=<a target="_blank" href="http://schemas.android.com/apk/res/%E4%BD%A0%E7%9A%8
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> picasso是Square公司开源的一个Android图形缓存库,地址<a target="_blank" href