在kotlin 中使用元件的時候跟java 一樣,要先透過 findViewById() 。以下就在activity 的 onCreate() 方法中做示範 class MainActivity : AppCompatActivity() ...
確定! 回上一頁