Use the 'by viewModels()' Kotlin property delegate. // from the activity-ktx artifact val model: MyViewModel by viewModels().
確定! 回上一頁