제목 그대로입니다.

달력 같은 걸 만드려고 하고 있구요.

GridView 안에 날짜 데이터를 ArrayAdapter 를 통해 set 해 주었습니다.
실행시키면 화면에도 날짜 화면이 달력처럼 나옵니다.
그런데, GridView.GetChildAt( position ) 을 하면 에러가 나길레 이상해서 GridView.getChildCount()  를 화면에 뿌려보니까
GridView.getChildCount() 가 0을 리턴합니다. 왤까요?

원래는 gridview가 화면에 뿌려진 다음에 GetChildAt( position ) 으로 빨간날으로 바뀌어야 될 GridView 안의 ChildView들을 setTextColor() 로 바꾸려 했는데.... GetChildAt() 이 안되니 암것두 안되네요.

혹시 비슷한 경우를 겪으셨던 분들, 조언 부탁드립니다.

아래는 위의 설명에 관한 소스 코드입니다.

        ArrayAdapter<String> arrayAdapt = new ArrayAdapter<String>( this, R.layout.sctest2, arrayStr );
        GridView gridview = ( GridView )findViewById( R.id.GridView01 );
        ca = new CalendarAdapter( this, arrayStr );
        gridview.setAdapter( ca );
        popup( " getChildCount:" + String.valueOf(  gridview.getChildCount() ) );

그럼, 좋은 하루 되시기 바랍니다.

여름철 메뚜기가 마냥 부러운 1人