안녕하세요.
루트 액티비티에서 bottom에 탭과 비슷한 레이아웃을 달았는데요,
이 레이아웃에서 버튼을 클릭 시 새로운 액티비티를 생성하려고 합니다.
새로운 액티비티를 생성할 때, bottom의 레이아웃은 화면에서 고정된 상태이면서 위의 화면에 덮어씌여지는 화면을 구성하고 싶습니다.
Fragment를 사용하지 않은 이유는 bottom의 레이아웃이 필요할 때만 나타나서 인데요.
Fragment를 사용하여 전체 뷰를 구성하고 stack 관리를 하면서 레이아웃을 잡아야 할까요...?
좋은 해결책이 있다면 답변 부탁드립니다...ㅠ
현재 루트 액티비티의 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:orientation="vertical">
<kr.co.widget.ScrollViewExt
android:id="@+id/activity_root_sv_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
<LinearLayout
android:id="@+id/activity_root_ll_section_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/activity_root_rl_events_section"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v4.view.ViewPager
android:id="@+id/activity_root_vp_event_section"
android:layout_width="match_parent"
android:layout_height="300dp" />
<me.relex.circleindicator.CircleIndicator
android:id="@+id/activity_root_vp_indicator"
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/activity_root_ll_products_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>
</kr.co.widget.ScrollViewExt>
<ImageButton
android:id="@+id/activity_root_btn_opendrawer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15dip"
android:layout_marginTop="15dip"
android:layout_alignParentRight="true"
android:src="@drawable/ic_drawer"
android:background="@android:color/transparent"/>
<include
layout="@layout/layout_bottom_nav"
android:id="@+id/activity_root_bottom_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"/>
</RelativeLayout>