Skip to content

Commit

Permalink
[Del/#19] 임시 frame layout 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
ss99x2002 committed Jul 9, 2023
1 parent e8a0ae5 commit 1a3c9e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,5 @@ import com.sopt.umbba_android.util.binding.BindingActivity
class MainActivity :BindingActivity<ActivityMainBinding>(R.layout.activity_main){
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
changeFragment(HomeFragment())
}

private fun changeFragment(fragment: Fragment) {
supportFragmentManager.beginTransaction()
.add(R.id.fragment_fv, fragment)
.commit()
}
}
9 changes: 9 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.MainActivity">

<FrameLayout
android:id="@+id/fragment_fv"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

0 comments on commit 1a3c9e8

Please sign in to comment.