0
ListView를 LinearLayout에 추가하고 싶습니다. 그러나 앱이 시작될 때 포커스를 요구하고 키보드를 엽니 다. 나는 그렇게하기를 원하지 않는다. 내가 질문을 조금 잘못을 물어라고 생각레이아웃에 추가 할 때리스트 뷰 포커스가 필요합니다.
contentLayout = (LinearLayout)findViewById(R.id.contentView);
contentList = new ListView(this);
contentList.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
contentLayout.addView(contentList);
XML
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ListView>