自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(61)
  • 资源 (7)
  • 收藏
  • 关注

原创 recyclerview使用详解

recycler是5.0之后退出的替代listview和gridview的解决方案,可以通过导入support的V7包0.功能1layoutmanager布局管理器,设置显示方式2ItemDecoration 设置item间的间隔3ItemAnimator控制item增删的的动画4.(缺点)在adapter设置点击、长按事件ItemClickListener与ItemLongC

2016-05-22 22:56:34 641

原创 Log日志终结者的使用--TinyLog

tinylog日志框架开发实战

2022-01-23 10:51:37 255

原创 MAC系统M1芯片安装Python3+RobotFramework全攻略

前言:M1芯片只能安装python3.9,以下版本不支持需要注意:robotframework-rideh和 w'x'p'y't

2021-06-06 00:02:08 1318 2

原创 自动化测试-1获取元素

1.定位元素方法1.使用sdk/toools/uiautomatorviewer.bat工具数字1的resource-id

2019-07-23 00:02:52 250

原创 appium环境搭建遇到的问题(adb)

appium genymotion adb 端口冲突问题1、报错为adb没有启作用,则:把adb用genymotion默认2、 genymotion默认的版本要和本地的adb保持一致genymotion无法安装https://www.jianshu.com/p/81f74e53f3c0复制文件D:\worksoft\Genymotion\tools>adb push ...

2019-07-22 23:52:11 341

原创 recycler使用详解2--配置多样item布局--适配复杂布局

1.定义自定义ItemType重写三个方法--添加布局:            public int getItemViewLayoutId(){ return layoutId; }--显示为true,不显示为false            public boolean isForViewType( T item, int position){return true; 

2017-02-11 01:01:22 388

原创 反弹效果实现

反弹效果主要是自定义scrollview0去掉滑动到底部和顶部的弧线阴影效果,在xml文件添加如下语句android:fadingEdge="none"android:overScrollMode="never"1.首先定义2个变量private View sonView ;--住视图private Rect normal = new Rect();--

2017-02-10 19:09:02 674

原创 官方侧滑菜单DrawerLayout的简单实现

drawerlayout目前只支持左右滑动,如果需要上下滑动需要自定义下面说一下代码层:其实不需要配mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_drawerlayout);first=(LinearLayout)findViewById(R.id.drawer_first);seoncd=(LinearLayout)

2017-02-10 16:27:31 516

原创 自定义下拉刷新简单原理实现

下拉刷新原理的话看下面的图:下面说一下具体的布局实现:RelativeLayout  RelativeLayout    imageview1RetiveLayout --最外层父布局---scrollTo方法移动的就是他,可以以此带到所有的viewgroup移动 (对于layout采用scrollTo实际上是移动他的所有子viewGroup或view)所以还要在外

2017-02-10 16:21:09 678

原创 将工程打包成library方法

1.将工程打包成library在app文件下的build.gradle文件里做如下配置:1.1去掉applicationId 项目defaultConfig {    //    applicationId "com.qtfreet.demo"}1.2.将第一行deapply plugin: 'com.android.application'改为apply plug

2017-02-08 09:19:36 299

原创 win10装机指南

今天新买了个移动硬盘需要重新装机,现在顺便来写个教程吧0准备工具:0.1联想g500笔记本0.2最新版老桃毛0.3ghost或者原版镜像0.4一个空的U盘注意装机需谨慎。。。1用老桃毛制作U启动盘,模拟调试后表明U盘安装成功2将ghost镜像文件放入U盘根目录3重启电脑(g500选择U盘启动的快捷方式是f12)4用磁盘工具分区5用老桃毛安装等待gho

2017-02-05 20:23:56 373

原创 github上实现代码管理

github代码管理步骤0.1注册github帐号0.2下载git工具1.在github上建立新仓库,并下载地址记录下来git  clone https://github.com/russe124/oa.git1.2配置基本文件1输入注册名字 git config --global user.name "russe124"2输入注册邮箱 git config --g

2016-10-30 13:19:15 353

转载 logcat命令详解--长期更新

参考文章http://blog.csdn.net/xundh/article/details/46010847打印日志adb shell logcat>d:\log1030.txt

2016-10-30 13:01:08 257

转载 解决adb报5037问题的思路---切换端口

参考文章 http://www.mz6.net/news/android/6885.html1配置环境变量--新建ANDROID_ADB_SERVER_PORT值 24678然后重启一下电脑就这么简单最大多数5037问题都是手机助手引起的

2016-10-30 12:38:04 1904

原创 android studio工程编译失败解决(长期更新)

1.gradle本地配置或下载失败打开setting》build,excution,deployment》gradle》use local gradle distribution gradle home 选择:android studio应用目录下》gradle》gradle-2.102不能下载jar包资源的解决Could not get resource 'https

2016-09-29 15:55:27 1456

原创 cocos环境搭建教程

cocos搭建需要:1.安装pythoncocosvisio studio(如需要)2.环境变量配置2.1androidsdk  ANDROID_SDK_ROOT2.2ndk ANDROID_SDK_ROOT     ~/ndk-bundleant路径path添加  ANDROID_SDK_ROOT  演示工程路径 D:\cocos2d-x-3.3\test

2016-09-28 11:56:29 823 1

转载 手表连手机模拟器

AndroidWear 连接手持设备与穿戴设备模拟器到开发环境http://blog.csdn.net/u011730649/article/details/47979405

2016-08-18 16:21:10 642

转载 lint代码检查工具

http://www.bubuko.com/infodetail-1055648.html

2016-07-22 10:24:53 339

原创 文件路径和文件读取方

几种文件路径: Environment.getDataDirectory())==/dataEnvironment.getExternalStorageState())==mountedEnvironment.getRootDirectory())==/systemEnvironment.getDownloadCacheDirectory())==/cacheEnvironme

2016-07-19 21:10:56 317

原创 bitmap图片处理优化

参考文件:http://www.cnblogs.com/wanqieddy/archive/2011/11/25/2263381.html图片处理主要考虑到OOM的问题,下面就来说说处理的几个要素:1.opetion配置 options.inJustDecodeBounds=true;这个属性是判断是图否把图片读到内存,true是不读的。int  options.inS

2016-07-19 20:36:06 237

原创 内存泄露解析和mat工具分析

内存溢出 out of memory,是指程序在申请内存时,没有足够的内存空间供其使用,出现out of memory;比如申请了一个integer,但给它存了long才能存下的数,那就是内存溢出。内存泄露 memory leak,是指程序在申请内存后,无法释放已申请的内存空间,一次内存泄露危害可以忽略,但内存泄露堆积后果很严重,无论多少内存,迟早会被占光。memory leak会最终会导

2016-07-18 19:30:10 241

原创 RXJava详解

/** 重点推荐* */Observable.just("main") // .subscribeOn(Schedulers.io()) 这里可以用来区分线程 .observeOn(Schedulers.newThread()) .map( new Func1() {

2016-07-18 01:37:21 247

原创 本地搭建svn服务器

1.创建放置的文件夹2.点击右键 Tortoise SVN》create repository here》ok3点击要提交的项目 右键tortoiseSVN》import》输入file:///+文件路径,然后输入备注,最后点击okend然后就大功告成啦

2016-07-17 00:20:15 216

原创 android国际化/多国语言适配

国际化插件 Android Localizationer下载页面 http://plugins.jetbrains.com/plugin/7629实际下载地址  http://plugins.jetbrains.com/plugin/download?pr=&updateId=22140本人下载的文件 http://pan.baidu.com/s/1bJHMUi2.添加

2016-07-16 03:13:46 578

原创 代码混淆

1.在build.gradle中间添加buildTypes {  release {    signingConfig signingConfigs.release    minifyEnabled true    proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘

2016-07-16 02:38:00 247

原创 material design技术详解

1

2016-06-11 17:41:51 644

原创 圆形(和柱形)动态增加的自定义view的制作

自定义view 嘛~需要做以下处理:onDraw--朱图onMeasure()--这里主要是对监听的处理startAnim--画数字增加的动态效果对画笔的要求 Paint arcPaint=new Paint(); //绘制圆弧 arcPaint.setStrokeWidth(widthBg / 20); //设置空心 arcPaint.

2016-06-09 02:56:27 435

原创 自定义控件topbar实现步骤

上面就是这个图的实现,下面就来看看他是怎么实现的把* 1.typeArray获取所有属性* 1.2  leftText=tp.getString(R.styleable.TopBar_leftText);获取attr定义的属性* 1.3 回收typeArray属性** 2设置布局属性  this.setBackgroundColor(0xFFFF0000);**

2016-06-09 00:06:51 287

转载 Support and Release Notes

Support and Release NotesIf you experience problems when developing and testing with the Wear 2.0 Developer Preview, please file bugs athttps://g.co/wearpreviewbug.To discuss issues or ideas

2016-06-03 09:14:28 330

转载 android wear的其他特性

Wear Input Method FrameworkIn this documentCreating an Input Method for WearInvoking IMEGeneral IME ConsiderationsWear 2.0 supports input methods beyond voice by extending the

2016-06-03 09:10:53 1334

转载 Notification Changes in Android Wear 2.0

Notification Changes in Android Wear 2.0This document includesVisual UpdatesExpanded NotificationsMessagingStyleAndroid Wear 2.0 updates the visual style and interaction paradi

2016-06-03 09:09:41 319

转载 wear api overview

Preview API OverviewKey developer featuresUser Interface ImprovementsComplicationsNavigation and Action DrawersNotifications and InputExpanded NotificationMessaging Style

2016-06-03 09:04:56 360

转载 Android Wear Preview Program Overview

Android Wear Preview Program OverviewWelcome to the Android Wear 2.0 Developer Preview! This program gives you everything you need to get started with the next version of Android Wear. It’s fr

2016-06-03 09:03:34 361

转载 矫情的service

接触手表后,service的存在就显得无比的重要啦,哈哈哈,下面来看一下注意的点:要想获得接受intent里面的所有key value 可以 采用下面的这个方法:http://blog.csdn.net/u012664191/article/details/38320879Intent intent = new Intent(MainActivity.this, I

2016-06-01 02:58:00 238

原创 重点总结

这一名称来源于传统手表,他的本意是除了显示时钟之外,还具有更多功能,如日历,闹钟,和一些指南针等功能而在智能手表领域,则有更丰富的功能,如天气,股票,日程等当前智能手表的complication功能Bits from usTwoLegacy zhuhandenApple watch缺点每一个表盘的数据都必须来源于自身系统的数据

2016-05-28 06:18:59 340

翻译 wear的complication系列文字稿

Youtube subtitles download by mo.dbxdb.com OLIN LAN: Hello, everybody. I'm Oli Lan, an engineer on the Android Wear team. TONY FERREIRA: And I'm Tony Ferreira, a designer on Android Wear.

2016-05-28 04:20:45 1574

转载 complications wear大会全文

100:00:00,000 --> 00:00:00,000Youtube subtitles download by mo.dbxdb.com 200:00:00,000 --> 00:00:00,000300:00:00,499 --> 00:00:02,770OLIN LAN: Hello, everybody.400:00

2016-05-28 04:08:56 356

转载 苹果官方解释complications

Customize the face of your Apple Watchhttps://support.apple.com/en-us/HT205536Choose a design, adjust the colors, then add complications to your watch face. You can even set the time ahe

2016-05-28 03:33:19 750

原创 comlications精萃

http://arstechnica.com/gadgets/2016/05/android-wear-2-0-promises-to-free-your-watch-from-your-phone/An API for complicationsThird parties have been able to make Android Wear watch faces for

2016-05-28 02:59:38 533

转载 关于android complication的官方文档

Watch Face ComplicationsIn this document00001. Adding Complications to a Watch Face00002. Exposing Data to Complications00003. Using Complication Types00004. Using Fields for Complication Da

2016-05-27 04:43:50 761

com exo的解析

2016-05-30

android最新开发者大会总结

简单描述android2.0最新功能

2016-05-28

androidwear官方文档

androidwear官方文档

2016-05-27

xcr常用的工具类

常用的工具类,基本全了

2016-05-12

android屏幕适配方案

android屏幕适配方案,做到了全适配

2016-05-12

asp采集程序的基本实例

asp的数据采集简要说明,asp的数据采集简要代码

2014-03-24

cx c++好用的实用的

好用又是在实在 ,真的没的说赚积分的人打打再说

2012-10-05

空空如也

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

TA关注的人

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