public class Notice_Activity extends Activity{
private ExpandableListView listview;
private ArrayList<String> GroupList = null;
private ArrayList<ArrayList<String>> ChildList = null;
private ArrayList<String> ChildListContent = null;
private Notice_Adapter notice_Adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.notice_main);
setLayout();
GroupList = new ArrayList<String>();
ChildList = new ArrayList<ArrayList<String>>();
ChildListContent = new ArrayList<String>();
GroupList.add("제목1");
GroupList.add("제목2");
ChildListContent.add("내용1");
ChildListContent.add("내용2");
ChildList.add(ChildListContent);
ChildList.add(ChildListContent);
notice_Adapter = new Notice_Adapter(this, GroupList, ChildList);
// 그룹 클릭 했을 경우 이벤트
listview.setOnGroupClickListener(new OnGroupClickListener() {
public boolean onGroupClick(ExpandableListView parent, View v,
int groupPosition, long id) {
return false;
}
});
//차일드 클릭 했을 경우 이벤트
listview.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
return false;
}
});
//그룹이 닫힐 경우 이벤트
listview.setOnGroupCollapseListener(new OnGroupCollapseListener() {
@Override
public void onGroupCollapse(int groupPosition) {
}
});
//그룹이 열릴 경우 이벤트
listview.setOnGroupExpandListener(new OnGroupExpandListener() {
@Override
public void onGroupExpand(int groupPosition) {
}
});
}
private void setLayout(){
listview = (ExpandableListView)findViewById(R.id.notice_list);
} <<<<<<<<<<<<<<<<<<<<<<<<<<<< 이 부분에서 syntax에러가 발생합니다.
}
샘플 소스를 참고하여 ExpandableListView를 작성하고있습니다.
똑같이 작성을 하였는데 위의 두번째 } 부분에서 syntax에러가 발생합니다
어디 부분이 문제인지 알려주세요