自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

victe2010

人生一直在超越

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

原创 Weex入门到精通-----搭建环境(一)

搭建环境1、下载node.js(Node.js 官网),下载可执行程序直接安装即可,2、对于 Mac,可以使用 Homebrew 进行安装:brew install node3、安装完成后,可以使用以下命令检测是否安装成功:$ node -vv10.4.0$ npm -v6.1.04、通常,安装了 Node.js 环境,npm 包管理工具也随之安装了。因此,直接使...

2018-07-20 10:22:37 181 1

原创 Activity 四种启动模式

Activity 四种启动模式设置activity启动模式,在AndroidManifest.xml 文件中activity标签里面设置android:launchMode属性,例如 <activity android:name=".MainActivity" android:launchMode="standard">

2017-06-20 14:55:39 204

原创 android AsyncTask介绍

1、简介android网络通信AsyncTask<Params,Progress,Result>(异步任务)该类是个抽象类,这个类可以让你进行后台操作并发布在UI线程上的结果,而无需操作线程和或处理程序。便于更新UI操作,2、任务执行过程执行异步任务经过四个步骤如下:onPreExecute :在执行后台操作之前调用(一般作为进度条的显示)doInBackground:执行在后台(即子线程中)

2017-06-09 12:36:22 203

原创 Android线程池学习

Android线程池学习一、为什么学习线程池1、减少了创建线程的数量,提高了APP的性能2、节省开销,防止并发线程过多,便于线程的管理二、线程池的分类(四类)newCachedThreadPool 缓存型线程池: 如果池中没有线程可用,它将创建 一个线程并添加到线程池中, 线程池中尚未使用的60秒线程 将会终止并从线程池中移出,因此, 对于长期保持足够的空闲池不会消耗任何资源。newF

2017-06-06 17:04:12 209

原创 android之service学习(上)

简介 Service 是一个可以在后台长时间运行而不提供用户界面的应用组件。Service可由其他应用组件启动,而且即使用户切换到其他应用,Service仍将在后台继续运行。 此外,组件可以绑定到Service,并与之进行交互,甚至可以执行进程间通信 (IPC)。 例如,Service 可以处理网络事务、播放音乐,执行文件 I/O 或与内容提供程序交互,而所有这一切均可在后台进行。

2017-03-29 00:09:02 242

二维码生成器

super onCreate savedInstanceState ; setContentView R layout main ; this setTitle &quot;Android条码 二维码识别Demo hellogv&quot; ; imgView ImageView this findViewById R id ImageView01 ; centerView View this findViewById R id centerView ; sfvCamera SurfaceView this findViewById R id sfvCamera ; sfhCamera new SFHCarmer sfvCamera getHolder width height previewCallback ; txtScanResult TextView this findViewById R id txtScanResult ; bt Button this findViewById R id bt ; bt setOnClickListener btclick ; 初始化定时器 mTimer new Timer ; mTimerTask new MyTimerTask ; mTimer schedule mTimerTask 0 80 ; } OnClickListener btclick new OnClickListener { @Override public void onClick View arg0 { if dstLeft 0 { 只赋值一次 dstLeft centerView getLeft width getWindowManager getDefaultDisplay getWidth ; dstTop centerView getTop height getWindowManager getDefaultDisplay getHeight ; dstWidth centerView getRight centerView getLeft width getWindowManager getDefaultDisplay getWidth ; dstHeight centerView getBottom centerView getTop height getWindowManager getDefaultDisplay getHeight ; } sfhCamera AutoFocusAndPreviewCallback ;">super onCreate savedInstanceState ; setContentView R layout main ; this setTitle &quot;Android条码 二维码识别Demo hellogv&quot; ; imgView ImageView this findViewById R id ImageView01 ; centerView View this findViewById R id centerView ; sfvCamera SurfaceView this fin [更多]

2015-03-31

android侧滑

dl DrawerLayout findViewById R id drawer layout ; if flag { dl closeDrawer Gravity LEFT ; dl closeDrawer Gravity RIGHT ; flag false; } else if flag false { dl openDrawer Gravity RIGHT ; dl closeDrawers ; flag true; }

2015-03-31

空空如也

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

TA关注的人

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