これは、それがどのように機能するかを知っている人にとっては簡単な質問です。
TextView myText = (TextView) findViewById(R.id.myText);
Button btn = (Button) findViewById(R.id.button);
(Textview)/(Button) は何をしますか?
それは同等ですか
TextView myText = new TextView(findViewById(R.id.myText));
Button btn = new Button(findViewById(R.id.button));
また、私の勘違いかもしれませんが、これはAndroidだけでなくJava言語でも?
ありがとう
注:テキストビューやボタンが何であるかを尋ねているのではなく、これがインスタンス化、キャストなどのタイプであることを尋ねています.