의 XML 뷰 그룹을 기존에 담기 내가 코드에 이미 존재하는 XML 레이아웃에보기를 추가 할 수 있도록하고 싶습니다 위의 코드 에서처럼 리소스를 사용하지 않습니다.보기 이미 코드
common_list.xml :
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Quick List"/>
</LinearLayout>
어떤 오류가 발생하면 logcat에 표시됩니까? – Dayerman
ERROR/AndroidRuntime (8357) : java.lang.RuntimeException : 활동을 시작할 수 없습니다. ComponentInfo {com.example.androidABC/com.example.androidABC.Common_ActivityList} : java.lang.NullPointerException 09-01 14 : 59 : 57.889 : ERROR/AndroidRuntime (8357) : android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2753) 09-01 14 : 59 : 57.889 : ERROR/AndroidRuntime (8357) : android.app.ActivityThread.handleLaunchActivity (ActivityThread. java : 2769) 09-01 14 : 59 : 57.889 : android.app.ActivityThread.access $ 2500 (ActivityThread.java:129) – Klau3