보통은 아래와 같이 하잔아요?
TextView textView01 = (TextView) findViewById(R.id.TextView01);
TextView textView02 = (TextView) findViewById(R.id.TextView02);
TextView textView03 = (TextView) findViewById(R.id.TextView03);
근데 이것을 배열로 받을 수는 없나요?
예를들어
TextView[] textView;
textView[0] = (TextView) findViewById(R.id.TextView[0]);
머 이런식으로요... 위에 소스는 안되더라고요.. 여튼 저런식의 배열로 TextView를 사용하는게 가능한지요? |
※ 회원등급 레벨 0 이상 읽기가 가능한 게시판입니다.
16
|