ListView의 항목별 비활성화를 어떻게 해야할까요?

조회수 644회
    final String[] _Setup_Menu = new String[]
            {
                    "a", "b", "c", "d", "e", "f", "g", "h",
            };

    _Setup_List = (ListView) _Main_List.findViewById(R.id._Main_ListView);
    ArrayAdapter<String> _Setup_Adapter = new ArrayAdapter<String>(this.getActivity(), R.layout.custom_menulist, R.id._Custom_MenuList_Text, _Setup_Menu);
    _Setup_List.setAdapter(_InitialSetup_Adapter);
    _Setup_List.getChildAt(6).setEnabled(false);

는 사용해봣습니다 문제는 mChildCount가 계속 0으로 반환되서 getChildAt에 null 값이 반환된다는 건데.. 이게 이유인지 뭔지는 모르겠지만

코드 상에 에러는 없이 어플을 시작하면 null 값이 반환된다는 오류와 함께 팅겨버립니다.. 어떻게 해야할까요?

  • (•́ ✖ •̀)
    알 수 없는 사용자

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)