나는 안드로이드에서 아마추어입니다. Fragment에 두 번째 레이아웃을 추가 할 수 있습니까? 예를 들어 는 :두 개의 레이아웃으로 조각 있음
View1 view1 = inflater.inflate(R.layout.b, container, false);
public class c extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.a, container, false);
}
}
에 추가 할 수 있습니다 e ... yo는 2 개의 다른 파편을해야한다. 어쨌든 왜 이걸 원하니? – antonicg
대답은 이미 거기에 있습니다 - http://stackoverflow.com/questions/32247542/inflate-multiple-layouts – Sufian