이것은 어떻게 작동하는지 아는 사람들에게 쉬운 질문입니다.(TextView) (Button)의 기능은 무엇입니까?
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));
, 내가 잘못 될 수도에 해당하지만,이뿐만 아니라 안드로이드에서 자바 언어인가?
감사
주 : 필자는 텍스트 뷰 또는 버튼이 무엇인지 질문하지, 메신저 묻는이가 캐스팅 인스턴스의 유형, 등이다
텍스 tView myText = (TextView) findViewById (R.id.myText); 텍스트 뷰의 초기화입니다. TextView myText = 새 TextView (activitycontext)입니다. 당신은 당신의 textview 또는 버튼을 초기화합니다. 닫힌 괄호'(TextView)'가 textview로 변환됩니다 – Raghunandan
그래서 그것의 초기화와 하나의 캐스트? – problemo
예보기를 초기화합니다. 즉, 텍스트보기 또는 버튼 – Raghunandan