This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
深入学习java的好地方 | |
http://tutorials.jenkov.com/ | |
http://www.ibm.com/developerworks/cn/java/coretech/?ca=j-r | |
good blog | |
http://www.stylingandroid.com/ | |
http://android.okhelp.cz/ | |
http://flavienlaurent.com/ | |
http://android-developers.blogspot.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
News: | |
Android Weekly - a free newsletter that helps you remain on the cutting-edge with your Android Development. | |
http://androidweekly.net/ | |
Tutorials: | |
Google's Android Developer Training http://developer.android.com/training/index.html | |
CommonsWare - AdvAndroid http://commonsware.com/AdvAndroid/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean isFirstItemVisible() { | |
final Adapter adapter = mRefreshableView.getAdapter(); | |
if (null == adapter || adapter.isEmpty()) { | |
if (DEBUG) { | |
Log.d(LOG_TAG, "isFirstItemVisible. Empty View."); | |
} | |
return true; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Attaches the menu drawer to the window. | |
*/ | |
private static void attachToDecor(Activity activity, MenuDrawer menuDrawer) { | |
ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView(); | |
ViewGroup decorChild = (ViewGroup) decorView.getChildAt(0); | |
decorView.removeAllViews(); | |
decorView.addView(menuDrawer, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://developer.android.com/training/gestures/viewgroup.html | |
InteractiveChart | |
/** | |
* Draws the overscroll "glow" at the four edges of the chart region, if necessary. The edges | |
* of the chart region are stored in {@link #mContentRect}. | |
* | |
* @see EdgeEffectCompat | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
关于view的绘制流程 | |
View | |
ViewParent(interface) | |
ViewGroup(extends View implements ViewParent) | |
ViewRoot(implements ViewParent) | |
Being a root parent of all views in the activity, the ViewRootschedules traversals of all the views in | |
order to first lay them out at the right place with the right size; this is called the layout phase. The | |
ViewRoot then traverses the view hierarchy to draw them; this phase is called the drawing phase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
比喻很形象 | |
Please note that the methods in Listing 1-10 are internal methods and are not part of the | |
public API, so they may change with newer releases. However, the underlying protocol would remain | |
the same. | |
In Listing 1-10, it is easier to first tell what forceLayout( ) is. It is like a touch command in build | |
environments. Usually when a file hasn’t changed, the build dependencies will ignore it. So, you | |
force that file to be compiled by “touch”ing, and thereby updating its time stamp. Just like touch, | |
the forceLayout( ) will not invoke any build commands by itself (unless your build environment is too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2012 Charles Harley | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//todo |
OlderNewer