package keijumt.devandroid.fragment import android.databinding.DataBindingUtil import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import keijumt.devandroid.R import keijumt.devandroid.databinding.FragmentMainBinding import keijumt.devandroid.viewmodel.MainViewModel class MainFragment : BaseFragment() { lateinit var binding: FragmentMainBinding lateinit var mainViewModel: MainViewModel override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { binding = DataBindingUtil.inflate(inflater, R.layout.fragment_main, null, false) mainViewModel = MainViewModel() binding.mainViewModel = mainViewModel return binding.root } }