Kyleduo's blog!


  • 首页

  • 归档

  • 标签

Vysor使用和黑屏问题

发表于 2016-06-01

Vysor是一个Chrome应用,它可以将Android设备的屏幕1:1投射到桌面,并且支持操作,非常流畅。简单来说,Vysor实现了基于真实设备的“Android模拟器”。

所以好处也显而易见了,流畅的操作体验和真实的设备,足以替代Android模拟器进行Android开发了。

它长这个样子:

阅读全文 »

Rainbow above Beijing

发表于 2016-05-23

rainbow

Rainbow above Beijing

taikooli

TAI KOO LI

Useful command for solve gradle build error.

发表于 2016-05-23   |   分类于 Android

I met an error today and I think I should record this. When run debug, gradle throw an error:

1
2
Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: 
org.gradle.process.internal.ExecException: Process 'command '/Users/kyle/Documents/developer/sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1

Solve the problem

When google the error log, I found a command in StackOverflow.

1
./gradlew assembleDebug --info

Run this command to see complete information and I notice this line:

1
<generated>:0: error: invalid symbol: 'switch'

So I think there was a typo and search switch in workspace. Finally I found a attribute definition where using switch for an enum name. I changed that key and problem solved.

The important thing I want to say is that command, if there is a time that I can not location the error in gradle message, I’ll remember that. And, does keyword like switch can not be used for key of attributes?

From wordpress to Hexo

发表于 2016-05-21

black

Just for mark.

【iOS】KDViewPager——类似Android ViewPager的控件

发表于 2016-04-20   |   分类于 iOS , 技术笔记 , 项目

KDViewPager是基于UIPageViewController实现的类似Android ViewPager的控件,用于展示可以滑动的一系列UIViewController,和其他类似控件不同的是,KDViewPager并没有封装其他的类似Tab之类的Control控件,同时支持已任意方式添加到任意View中,所以更加灵活。

先看一下Demo:

preview

阅读全文 »

CocoaPods使用

发表于 2016-04-18   |   分类于 Uncategorized

CocoaPods算是iOS开发者的必须课了,是非常常用的服务,这篇文章简单总结一下Pods的安装和基本使用。

Pods使用Ruby开发,用Gems管理。工作的基本原理是基于Github仓库搭建开源项目的repo源,使用时通过git将repo源clone到本地,repo中包含开源项目的Git仓库地址,使用Pods导入时就是使用地址将开源项目clone到项目目录。

安装

Pods使用Gems安装,不过在国内受到GFW的限制,所以需要将Gems的源改成国内的。

阅读全文 »

Exchange Fragment in FragmentTabHost/替换FragmentTabHost中的Fragment

发表于 2016-04-14   |   分类于 Uncategorized

因为Android App经常要做成iOS的样子,FragmentTabHost也算是比较常用的控件了(不考虑Google打脸的新TabHost控件)。在使用FragmentTabHost时,我们可能会遇到这种需求,就是将某个Tab进行替换,比如“我”这个Tab,如果是未登录状态就需要切换成未登录状态的页面。

本文就讲一下如何实现FragmentTabHost中对Fragment进行替换。先看下效果:

preview]

阅读全文 »

在Android上实现手势密码

发表于 2016-04-06   |   分类于 Android

看到这个标题你可能会笑,Android手势密码的文章打印出来都可以绕地球好几圈了,还有什么好说的?当然有。绝大部分的文章都是写怎么实现9点手势密码,有个重要的地方,都没涉及到,那就是怎样触发手势密码。

You will think this post as a joke, as there are so many posts can be found by Google. What makes this post special? Exactly. Most of the other posts show you how to create 9-point gesture view, but miss a very important point about how to trigger it.

我们要实现的需求如下:(前提是已经设置并保持了手势密码)

We are going to implement these requirements: (Gesture password has be set for premise)

  1. 点击桌面图标启动App,先展示Splash页面,然后弹出验证手势密码的页面,输入完成后打开App。
  2. 应用启动状态,用户按Home键使App进入后台,或者切换到其他应用使本应用进入后台,或者锁屏。这几种情况用户都不会再操作这个App,超过一段时间之后再打开App,弹出验证手势密码的页面,输入正确进入之前的页面。(如果时间过长导致应用被杀死,应该属于第一点需求)

    阅读全文 »

采集已经上线

发表于 2016-03-25   |   分类于 项目

采集,是花瓣的第三方Android客户端,现已上线豌豆荚市场,欢迎需要的同学下载使用。豌豆荚 直接下载

logo512

ads_0

 

花开了,春来了

发表于 2016-03-25   |   分类于 摄影

Processed with VSCO with c1 preset

Samsung note 4 + VSCO

1…789…15
kyleduo

kyleduo

Always follow my heart.

142 日志
30 分类
101 标签
Github Weibo
友情链接
  • CarlWe
  • Jeremy's World
© 2026 kyleduo
由 Hexo 强力驱动
主题 - NexT.Mist
京ICP备15044234号-1