原创 Parcelable實戰

Android開發過程中,無法將對象的引用傳給Activities或者Fragments,我們需要將這些對象放到一個Intent或者Bundle裏面,然後再傳遞,這就需要用到序列化和反序列化。 序列化分類 Parcelable

原创 Leetcode048--二叉樹的遍歷組合相加

一、原題 Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a numb

原创 Leetcode051--判斷迴文數(忽律大小寫和非字符)

一、原題 Given a string, determine if it is a palindrome, considering only alphanumeric characters an

原创 Volley框架淺析

一、概念 什麼是Volley 開發android應用很多時候都要涉及網絡操作,Android SDK中提供了HttpClient 和 HttpUrlConnection兩種方式用來處理網絡操作,但當應用比較複雜的時候需要我們編寫

原创 Leetcode053--找到分支最小路徑和

一、原題 Given a triangle, find the minimum path sum from top to bottom. Each step you may move to

原创 Dagger2入門簡記

Dagger2概念 注入的概念 依賴注入:就是目標類(目標類需要進行依賴初始化的類,下面都會用目標類一詞來指代)中所依賴的其他的類的初始化過程,不是通過手動編碼的方式創建,而是通過技術手段可以把其他的類的已經初始化好的實例自動注

原创 apk文件的解包和打包操作

1. apk文件的解包和打包 最新版的apktool:https://bitbucket.org/iBotPeaches/apktool/downloads/ 首先更新apktool.jar爲最新版本,apktool腳本也是,複

原创 Google官方MVP腦補

一、組成 下面一張圖勝過千言萬語 用一句話來概括,就說P將M和V分開了,其實也沒這麼簡單,P會將自己傳遞給V,然後在V中進行一些邏輯 二、分析 如下是Google官方基礎MVP程序的框架 我們發現在主包下面有6個子包和兩個接口

原创 EventBus學習記錄

一、概念 什麼是EventBus EventBus是一款針對Android優化的發佈/訂閱事件總線。主要功能是替代Intent,Handler,BroadCast在Fragment,Activity,Service,線程之間傳遞消

原创 Leetcode050--字符串的過渡

一、原題 Given two words (start and end), and a dictionary, find the length of shortest transformation

原创 Leetcode052--二叉樹路徑最大和

一、原題 Given a binary tree, find the maximum path sum. The path may start and end at any node in t

原创 Leetcode049--最長連續子數組

一、原題 Given an unsorted array of integers, find the length of the longest consecutive elements seque

原创 View框架淺析

參考文章如下,這幾篇文章很好,圖文並茂,我這裏只是取了一些原文的概念放到這裏方便複習: http://www.jianshu.com/p/a3014f8442b0 整體View結構 控件主要分爲兩類,一類是View,一類是Vie

原创 Leetcode047--所有迴文子串的組合

一、原題 Given a string s, partition s such that every substring of the partition is a palindrome. Return

原创 gradle學習記錄

一、概念 什麼是gradle 1、獨立項目,和Google無關 2、Grdle基於Groovy。(Maven、Ant基於xml) 3、Gradle兼容Maven、Ant 4、Gradle 的推出主要以 Java 應用爲主,當然還支