Java 中的方式. 从Android Support Library 26.0.0 Beta 1 开始findViewById 将不再需要强转了。 private Button mButton; ... mButton = findViewById(R.id.button);.
確定! 回上一頁