lecture_detail_view_layout.xml은 이렇게 분리영역을 확인할수 있도록
TextView를 두었구요.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation = "vertical">
<ListView
android:id = "@+id/legaltyList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text = "분리되는 영역"/>
<ListView
android:id = "@+id/relatedList"
android:layout_height = "wrap_content"
android:layout_width = "fill_parent"/>
</LinearLayout>
실제로 구현하는 액티비티는 아래와 같습니다.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lecture_detail_view_layout);
ListView legaltyList = (ListView) findViewById(R.id.legaltyList);
ListView relatedList = (ListView) findViewById(R.id.relatedList);
parser = new DetailJsonParser(lectureID);
parser.parse();
legaltyadapter = new LectureListAdapter(this,R.layout.lecture_list_item,parser.getLegaltyLectureArray());
relatedadapter = new LectureListAdapter(this,R.layout.lecture_list_item,parser.getRelatedLectureArray());
legaltyList.setAdapter(relatedadapter);
relatedList.setAdapter(legaltyadapter);
}
근데 위의 리스트뷰만 나오고 아래의 텍스트뷰와 리스트뷰는 안나오네요..ㅜ.ㅜ
제가 레이아웃을 잘못잡았는지, 뭔가 잘못알고있는건지 고수님들 답변 부탁드립니다.