/**
* Called when the activity needs its list of headers built. By implementing
* this and adding at least one item to the list, you will cause the
* activity to run in its modern fragment mode. Note that this function may
* not always be called; for example, if the activity has been asked to
* display a particular fragment without the header list, there is no need
* to build the headers.
*
* <p>
* Typical implementations will use {@link #loadHeadersFromResource} to fill
* in the list from a resource. For convenience this is done if a header
* resource has been set with {@link #setHeaderRes(int)}.
*
* @param target The list in which to place the headers.
*/
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public void onBuildHeaders(List<Header> target) {
// Do not build headers unless in single pane mode.
if (!isSinglePane() && mHeaderRes > 0) {
loadHeadersFromResource(mHeaderRes, target);
}
}
UnifiedPreferenceHelper.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:learning_gradle_android
作者:
评论列表
文章目录