原创 實用的開源項目

一些覺得有用的網上的開源工程,以備不時之需 pinned-section-listview 帶有標題的listview,使用與類似通訊錄有不同字母開頭的列表。 https://github.com/beworker/pinned-sect

原创 Notification的版本適配問題

Notification notification1 = new Notification.Builder(context)    .setAutoCancel(true)    .setContentTitle("sdf")    .s

原创 Leet Code 3. Longest Substring Without Repeating Characters (最長的沒有重複字符的子字符串)

轉載請註明出處:http://leonchen1024.com/2018/07/21/3-Longest-Substring-Without-Repeating-Characters/Record[Chinese-ver]/ [Chine

原创 解析JSON入門

解析JSON入門 JSON 是現在比較流行的輕量級數據交換語言。要解析json首先要對它的結構有一定的瞭解。 JSON 的基本數據格式可以分爲 1.JSON 對象——JSONObject {“name”:”張三” , “age”

原创 Android6.0 危險權限和普通權限

本文鏈接 Normal Permissions如下 ACCESS_LOCATION_EXTRA_COMMANDS ACCESS_NETWORK_STATE ACCESS_NOTIFICATION_POLICY ACCESS_WIFI_S

原创 LeetCode 2. Add Two Numbers

2. Add Two Numbers[Chinese ver] 轉載請註明出處http://leonchen1024.com/2018/07/15/2-Add-Two-Num/Record[Chinese-ver]/ 問題:你將獲得兩個非

原创 android unable to get system library

sdk版本問題。 1、修改project.propert中的target=android-19 使其高於自己使用的sdk等級 2、等級符合要求的時候可能是生成出了問題。隨便修改一個版本再改回來即可。 轉載請註明出處:http://blo

原创 Android activity 生命週期(一)

Android activity 生命週期(一) 轉載請註明出處:http://blog.csdn.net/chenlinfeng772885775/article/details/53672919 Activity是Android中一

原创 去除listview默認點擊效果和底色

android:listSelector="@color/transparent"         android:cacheColorHint="@color/transparent"