build.gradle
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
main_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<Button
android:id="@+id/bt111"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="流布局" />
<Button
android:id="@+id/bt112"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="线性布局" />
<Button
android:id="@+id/bt113"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="添加一个Item"
android:textAllCaps="false" />
<Button
android:id="@+id/bt114"
android:layout_width="match_parent"
android:layout_height<