Android开发协调布局滑动悬停

Android开发协调布局滑动悬停

直接给个xml,防止下次忘了怎么写。


<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
    android:layout_height="match_parent"
    >

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/abl_js"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white">

        
        <androidx.coordinatorlayout.widget.CoordinatorLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            >

            <LinearLayout
                android:id="@+id/ll_bj"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/dp_12"
                android:paddingTop="@dimen/dp_5"
                android:paddingRight="@dimen/dp_12"
                android:paddingBottom

你可能感兴趣的:(android开发日记,android,Android开发,Android教程,Android协调布局,Android悬停效果)