개발/개발 자료
(Android) View LayoutInflater 사용하기
시원한물냉
2015. 1. 14. 20:03
View view = (View) getLayoutInflater().
inflate(R.layout.activity_main,
null
);
TextView tv = (TextView) view.findViewById(R.id.textview);
위 소스로 다이얼로그 등에서 xml레이아웃을 불러와서 보여줄 수 있다.
Dialog에서는
.setView