0
xml 파일에 이미 정의되어있는 선형 레이아웃에 일부 뷰를 프로그래밍 방식으로 추가하려고합니다.Android linearLayout의 id 매개 변수 설정
이것은 당신이이 id 요소가없는 볼 수 있듯이,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
그러나있는 LinearLayout을 정의 내 코드입니다. 레이아웃을 검색하기 위해 내 활동에서 findViewById 메소드를 호출 할 수 있도록 어떻게 추가 할 수 있습니까? 수동으로 추가하려고했지만 R.java에서 생성되지 않았습니다.
감사합니다.