现在 Android 开发中列表 Header 吸顶效果比较常见了,针对 ListView、RecyclerView 都有多种实现方式。之前开发也碰到过,都是用的三方库或者框架。今天主要写下直接利用 Android 原生来进行实现。
页面大致如下:

缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: true
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true