<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorWhite"> <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="45dp"> <com.jcodecraeer.xrecyclerview.XRecyclerView android:id="@+id/xrv_home" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="10dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <com.youth.banner.Banner android:id="@+id/view_banner" android:layout_width="match_parent" android:layout_height="190dp" app:image_scale_type="center_crop" app:indicator_drawable_selected="@drawable/banner_red" app:indicator_drawable_unselected="@drawable/banner_grey" app:indicator_height="9dp" app:indicator_margin="3dp" app:indicator_width="9dp" app:is_auto_play="true" app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed" /> <include android:id="@+id/layout_select_tab" layout="@layout/layout_home_secect_button" /> <View style="@style/divider_gray_setting" /> </android.support.design.widget.AppBarLayout> </android.support.design.widget.CoordinatorLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:background="@color/colorYello"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/app_name" android:textColor="@color/colorWhite" android:textSize="18sp" /> </RelativeLayout> </RelativeLayout> </layout>
安卓滑动悬停效果
最新推荐文章于 2024-06-26 09:54:52 发布