xml을 include하는 방법은 아래와 같다
<include
layout="@layout/content_login"
android:layout_width="match_parent"
android:layout_height="match_parent" />
근데 이걸왜 굳이 해야하는지 모르겠다.
그냥 안드로이드 스튜디오에서 Activity파일을 만드니까 activity_login과 content_login파일이 따로 생성되어
연결되어있더라..
'Programming > Android' 카테고리의 다른 글
ScrollView (0) | 2016.09.15 |
---|---|
xml 경계선 (0) | 2016.09.15 |
View (0) | 2016.09.07 |
Service (0) | 2016.09.05 |
R (0) | 2016.09.05 |