현재 스크롤뷰안에서 레이아웃들이 쭉 늘어져있는 형태입니다.
이 스크롤을 내릴 때 마다 항상 상단에서 따라다니는 버튼을 하나 만들고 싶은데요.
어떤 방법을 사용해야 할까요... 검색해도 잘 나오질 않네요...
레이아웃을 하나 최상단에 생성해서 버튼을 박으려니...
버튼에만 이미지를 넣어주고 레이아웃이 투명색으로 되어 밑에 다른 레이아웃이 보이게 해주고 싶습니다..
도움주시면 감사드려요^.^
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/ll_section_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_events_section"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v4.view.ViewPager
android:id="@+id/vp_event_section"
android:layout_width="match_parent"
android:layout_height="300dp" />
<me.relex.circleindicator.CircleIndicator
android:id="@+id/indicator_custom"
app:ci_width="10dp"
app:ci_height="10dp"
app:ci_margin="6dp"
app:ci_animator="@anim/indicator_animator"
app:ci_drawable="@drawable/white_radius"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="40dp" />
</RelativeLayout>
<LinearLayout
android:id="@+id/ll_products_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>