Flipper 를 이용해서 다른 Xml 에 있는 RelativeLayout을 불러오려고 하는데

View nv = findViewById(R.layout.otherLayout);
로 View 를 만들어주고

private ViewFlipper mFlipper = (ViewFlipper) this.findViewById(R.id.Flipper);
nv = mFlipper.getChildAt(1);

이렇게 해서  1번을 붙여주고 버튼을 만들어서

mFlipper .setDisplayedChild(1);

이 메소드를 주고 클릭했는데

Layout 이라 그런지 작동하지를 않네요..

검색해보니 LayoutInflater 를 이용하면 View 로 바꿀 수 있다는 것 같은데

도저히 모르겠습니다.. ㅠㅠ

도움을 부탁드립니다.

감사합니다.

profile

Android, Unity3D