override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val binding : ActivitySettingsBinding = DataBindingUtil.setContentView(this, R.layout.activity_settings)
binding.elements = dataUi
}
В принципе у меня схоже: override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? = FragmentAppSettingsBinding .inflate(inflater, container, false) .apply { handler = this@AppSettingsFragment } .root
Обсуждают сегодня