3 июня, 2022

WeatherApp #2 – MainFragment, ViewBinding

MainActivity.kt import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport com.meter_alc_rgb.weatherappcursey.fragments.MainFragmentclass MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) supportFragmentManager .beginTransaction() .replace(R.id.placeHolder, MainFragment.newInstance()) .commit() }} MainFragment.kt import android.os.Bundleimport… Подробнее »WeatherApp #2 – MainFragment, ViewBinding