原创 Google Android 原生Rom 下載地址及刷機教程--Factory Images for Nexus and Pixel Devices
Google Android 原生Rom 下載地址及刷機教程(僅限開發者使用哈,裏面需要用到一些Android 開發工具中帶的命令行) 詳見鏈接:https://developers.google.com/android/images#h
原创 Broadcasts -----Security considerations and best practices
Here are some security considerations and best practices for sending and receiving broadcasts: If you don't need to s
原创 Notifications --- Preserving Navigation when Starting an Activity
When you start an Activity from a notification, you must preserve the user's expected navigation experience. Clicking
原创 Using the RecyclerView
Overview The RecyclerView is a new ViewGroup that is prepared to render any adapter-based view in a similar way. It
原创 Size, Padding and Margins
The size of a view is expressed with a width and a height. A view actually possess two pairs of width and height valu
原创 Understand Tasks and Back Stack--Defining launch modes
Defining launch modes1、Using the manifest file"standard" (the default mode)"singleTop""singleTask""singleInstance"2
原创 ScrollView’s handy trick--android:fillViewport="true"
ScrollView is one of Android’s most commonly used widget and is also one of the easiest to use. When something is too b
原创 Things That Cannot Change
Sometimes a developer will make a change to an application that has surprising results when installed as an update
原创 Set "gravity" attribute to a RelativeLayout not working
How gravity affects the subviews is shown in the image below. I resized the widths of all the subviews so that wha
原创 High-Order_functions_and_lambdas
Higher-Order Functions and Lambdas1 Higher-Order Functions A higher-order function is a function that takes functio
原创 Positions in RecyclerView
Positions in RecyclerView: RecyclerView introduces an additional level of abstraction between the RecyclerView.Adapte
原创 Helper class for creating pools of objects.
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "Lic
原创 Vim搜索
1 顯示、不顯示行號 :set nu :set nonu 2 搜索高亮顯示 :set hlsearch hlsearch:highlight search 3 同時搜索多個關鍵字 多個關鍵字之間用“|”分隔; 若搜索關鍵字內
原创 Services overview
原文鏈接:https://developer.android.com/guide/components/services 原文鏈接:https://developer.android.c
原创 Java PECS
extends The wildcard declaration of List<? extends Number> foo3 means that any of these are legal assignments: List<?