MaterialDesign5.0 中 CoordinatorLayout 和 AppBarLayout
来制作悬停效果布局 。
先看下栗子
实现很简单
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"