Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Activity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity)
- if (savedInstanceState == null) {
- supportFragmentManager
- .beginTransaction()
- .replace(R.id.framelayout_for_fragment, Fragment())
- .commit()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement