下拉放大的ScrollView
首先是XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f5f5f5"
android:orientation="vertical">
<ImageView
android:id="@+id/background_img"
android:layout_width="match_parent"
android:layout_height="365dp"
android:layout_marginTop="-100dp"
android:background="@drawable/bg_mine"
android:contentDescription="@null"
android:scaleType="fitXY" />
<com.haoju.monkeyking.widget.PullScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
app:headerHeight="300dp"
app:headerVisibleHeight="100dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/transparent"
android:orientation="vertical">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profile_image"
android:layout_width="88dp"
android:layout_height="88dp"
android:layout_gravity="center"
android:layout_marginTop="45dp"
android:src="@drawable/icon_mine_logo"
app:civ_border_color="#fff"
app:civ_border_width="4dp" />
</LinearLayout>
</com.haoju.monke