main

square/leakcanary

Last updated at: 29/12/2023 09:38

TestActivity.kt

TLDR

This file contains a class named TestActivity that extends FragmentActivity, and its purpose is to set the content view to the specified layout resource.

Classes

TestActivity

The TestActivity class extends the FragmentActivity class and is responsible for the creation of the activity. It overrides the onCreate method and sets the content view to the layout specified by the R.layout.activity_test resource.

package leakcanary

import android.os.Bundle
import androidx.fragment.app.FragmentActivity
import com.squareup.leakcanary.instrumentation.test.R

class TestActivity : FragmentActivity() {
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_test)
  }
}