Yuan Fu

傅圆的博客

Swift Apprentice II -- Advanced Topics

Swift notes

The notes of Swift Apprentice Code Organization A theme of access control is the idea that your code should be loosely coupled and highly cohesive. Loosely coupled code limits how much one en...

The Design of Card Diary

A pretty journal

CARD DIARY App Store: Card Diary App Store Website : CardDiary.me Behance / dribbble / Uplabs UX / UI Designer: Unbong Kang lain.kr / Dribbble / Facebook / Twitter / Instagram iOS Developer:...

Swift Apprentice I -- Basic Topics

Swift notes

The notes of Swift Apprentice Collection Array updating elements 1 2 3 4 var players = ["A", "B", "C", "D"] players[0...1] = ["1", "2", "3", "4"] print(players) // > ["1", "2", "3", "4",...

Assignment2 Presentation

Click Watch Slides to separate page Hi, Swift I shared this article in our assignment 2 of iOS course class. This keynote is about the Swift and what’s different between Swift, Kotline and Ja...

Auto Layout for a Calculator

Prologue In this article, I will talk about Auto Layout in iOS (Swift 3). It is a basic skill for iOS development nowadays. This article will be not very complicated, but very easy to understand. ...

Hi, Kotlin

Keynote: Kotlin Programming Language

Click Watch Slides to separate page Hi, Kotlin I shared this article in our technology sharing meeting in our company(Haihu). This keynote is about the Kotlin and what’s different between Kot...

外刊看中国第五期

The Economist 学习

第二次雅思考试结束的时候,感觉有时间了,然后就参加了魏剑峰的 精读能力训练与提升:外刊看中国计划第五期招募 从3月1日开始,一直会到5月21日,把自己的笔记贴上来吧,就算是督促了,之前放在右上角新增了一个 LEARN 模块,但是感觉权重太大了,所以还是以博文的形式吧。 从魏大最开始的知乎回答问题,到他开了公众号《经济学人赏析》,后改名成《英文悦读》,以及出的书《地道英文写作进阶》,这一路都...

Coding for freedom

在希望的原野上奔跑

思来想去,还是决定新开个文章,再写在 My stages 就显得有点不合适了。对,我决定…公开了!虽然这里也没几个人能看到,哈哈哈哈哈。 起因 原因复杂,细说也不便,记得当初我的 leader 在饭后散步和我们说起他的一个阿里同事的座右铭,即本文标题,coding for freedom(不晓得他的这个同事现在如何了)。这句话倒是一直印在我脑海里,这倒不是说出国了就 free 了,现在也...

“Retrofit Analysis"

Keynote: A finger tips of RxJava

Click Watch Slides to separate page Retrofit I shared this article in our technology sharing meeting in our company(Haihu). This keynote introduce the Retrofit. Watch Slides → You can als...

Response gzip 解压的问题

问题描述 在项目中使用了 retrofit 和 OkHttp 之后,服务端返回的数据都是被压缩的,导致 OkHttp 不能解析数据 问题排查 在此之前,通过调用 API 服务端下发的数据都是 gzip 压缩的,但是 response 的 header 里面并没有 Content-Encoding:gzip 的 header 头。以前在使用 HttpURLConnection 类的时候,...

RxWeekend

RxJava 的周末狂欢

周五的时候就打算这个周末就看 RxJava 了,于是利用一个周末的时间把咖啡变成了文字,对,就是咖啡,不是啤酒和炸鸡,周六把 RxJava Essentials 英文版再看了一遍,顺便看了一遍翻译版,周日把小鄧子的博客以及他引述的其他文章全部看了一遍。 Part1 部分主要是 RxJava Essentials 的操作符 Part2 部分主要是一些 tips 对于Part1我更建议你先...

My stages

2016年,学习目录

update 2017.04.17 3月30日 IELTS 三战6.0(L:6, R:7, W:5.5, S:5.5)。今天2.25的复议成绩出来了,写作提升了0.5!!!总分提升到了6(L:5.5, R:6, W:6, S:5.5)。2.25的成绩单也能拿去申请 GD 了,所以顺手把复议成功退回来的1000块钱,接着拿去复议3.30这场的考试了(总感觉写作和口语不止5.5,我发挥的不错呀...

Android Scroll 分析

《Android 群英传》读书笔记

链接 Android 控件架构与自定义控件详解 这是我重读《Android 群英传》的时候做的读书笔记,这里主要讲了 Android 坐标系和视图坐标系,以及实现滑动的多种实现方法。 Android 坐标系和视图坐标系 区别 Android 坐标系:左上角作为原点,由 getLocationScreen(int location[]) 获取点的位置,或...

Android 控件架构与自定义控件详解

《Android 群英传》读书笔记

链接 Android Scroll 分析 这是我重读《Android 群英传》的时候做的读书笔记,在 View 这块,医生讲解真的非常深入浅出,非常值得一读,并且多次重读。 架构: PhoneWindow 将一个 DecorView 设置为整个应用窗口的根 View,这里面所有 View 的监听事件,都通过 WindowManagerService 来接收。Dec...

Effective Java 笔记

这个是我在看原版《Effective Java》的读书笔记,略作笔记,方便记忆。英文版看起来还是有点吃力,慢慢看!坚持看完!也算是阅读的第一本原版技术书了。 Item 1:考虑用静态工厂方法来替代构造方法 一个类可以提供一个公开的静态工厂方法,它只是返回一个该类的实例。如下是一个简单的例子,这个方法将一个 boolean 的基本类型转变成了一个 Boolean 对象的引用: 1...

初窥 Android 模拟器 2.0,这些年来最大最棒的更新

First Look at Android Emulator 2.0, the biggest and the best update yet in years

原文地址:初窥 Android 模拟器 2.0,这些年来最大最棒的更新 翻译原文:First Look at Android Emulator 2.0, the biggest and the best update yet in years 我相信,所有的 Android 开发者都会同意 2015年 Android 开发者大会发布的最大的消息是 Android Stud...

保持 EditText 的简洁

在 Android 中对你所有的 EditText 实现文本监听

原文地址:保持 EditText 的简洁 翻译原文:Keeping it clean 项目地址(欢迎 Star):ClearEditText 在 Android design support 包中提供了一种在输入不合适字符时一直显示的提示方式来显示,现在已经开始在更多的应用上被使用了;这些 Android app 在显示他们的错误提示时采用的不同的方式常常让...

RxJava 入门

Getting Started with RxJava and Android

原文地址:RxJava 入门 翻译原文:Getting Started with RxJava and Android 什么是 ReactiveX? ReactiveX 是一个专注于异步编程与控制可观察数据(或者事件)流的API。它组合了观察者模式,迭代器模式和函数式编程的优秀思想。 实时数据处理是一件普通的现象,有一个高效、干净和可扩展的方式来处理这些情景是重要的。...

指尖上的RxJava

Keynote: A finger tips of RxJava

Click Watch Slides to separate page RxJava I shared this article in our technology sharing meeting in our company(Haihu). This keynote is about the Reactive Programming and what is RxJava and...

百分比布局支持库

RelativeLayout 和 FrameLayout 的尺寸用 % 来表示

原文地址:百分比布局支持库 参考原文:Percent Support Library: Bring dimension in % to RelativeLayout and FrameLayout 虽然有很多的布局可以在 Android 应用程序开发的世界供我们使用,但我们总是只用这三种布局:LinearLayout, RelativeLayout and FrameLa...