0
<?xml version="1.0" encoding="utf-8"?> 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" > 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 
     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="vertical" > 

      <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="vertical" > 

       <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="horizontal" > 
       <TextView 
         android:id="@+id/textView1" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         android:textAppearance="?android:attr/textAppearanceLarge" 
         android:layout_weight="1" 
         android:text="MARKETING SUPERVISOR"/> 


       </LinearLayout> 

      </LinearLayout> 

      <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="vertical" > 

       <TextView 
         android:id="@+id/textView1" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         android:layout_weight="1" 
         android:textAppearance="?android:attr/textAppearanceLarge" 
         android:text="CHALLAN" 
         android:gravity="center"/> 
      </LinearLayout> 


      <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="vertical" > 


       <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:orientation="horizontal"> 
        <TextView 
         android:id="@+id/textView1" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         android:textAppearance="?android:attr/textAppearanceMedium" 
         android:layout_weight="1" 
         android:text="Perm.IncmTax Num." 
         android:gravity="center"/> 
        <EditText 
         android:id="@+id/editText1" 
         android:layout_width="fill_parent" 
         android:layout_weight="1" 
         android:layout_height="fill_parent" 
         android:inputType="number" 
         android:gravity="center" > 
         <requestFocus /> 
        </EditText> 
       </LinearLayout> 

       <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:orientation="horizontal"> 
       <TextView 
        android:id="@+id/textView2" 
        android:layout_width="fill_parent" 
        android:layout_weight="1" 
        android:layout_height="fill_parent" 
        android:text="Customer Code Number" 
        android:textAppearance="?android:attr/textAppearanceMedium" 
        android:gravity="center"/> 
       <EditText 
        android:id="@+id/editText2" 
        android:layout_width="fill_parent" 
        android:layout_weight="1" 
        android:layout_height="fill_parent" 
        android:inputType="number" 
        android:gravity="center"> 

        <requestFocus /> 
       </EditText> 
      </LinearLayout> 

       <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="horizontal"> 
       <TextView 
        android:id="@+id/textView3" 
        android:layout_width="fill_parent" 
        android:layout_weight="1" 
        android:layout_height="fill_parent" 
        android:text="Customer Name" 
        android:gravity="center" 
        android:textAppearance="?android:attr/textAppearanceMedium" /> 

       <EditText 
        android:id="@+id/editText3" 
        android:gravity="center" 
        android:layout_weight="1" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:inputType="textPersonName" /> 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="horizontal"> 
      <TextView 
        android:id="@+id/textView4" 
        android:gravity="center" 
        android:layout_weight="1" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:text="Customer Address" 
        android:textAppearance="?android:attr/textAppearanceMedium" /> 
       <EditText 
        android:id="@+id/editText4" 
        android:gravity="center" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:layout_weight="1" 
        android:inputType="textPostalAddress" /> 
     </LinearLayout> 

      <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="horizontal"> 
      <TextView 
        android:id="@+id/textView5" 
        android:gravity="center" 
        android:layout_weight="1" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:text="Name of Cosignee" 
        android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
        android:id="@+id/editText5" 
        android:layout_width="fill_parent" 
        android:gravity="center" 
        android:layout_weight="1" 
        android:layout_height="fill_parent" 
        android:inputType="textPersonName" /> 
     </LinearLayout> 

     <LinearLayout 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:orientation="horizontal"> 
      <TextView 
         android:id="@+id/textView6" 
         android:layout_width="fill_parent" 
         android:layout_weight="1" 
         android:layout_height="fill_parent" 
         android:gravity="center" 
         android:text="Address of Cosignee" 
         android:textAppearance="?android:attr/textAppearanceMedium" /> 
       <EditText 
         android:id="@+id/editText6" 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         android:layout_weight="1" 
         android:gravity="center" 
         android:inputType="textPostalAddress" /> 
     </LinearLayout> 

      <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 

      <TextView 
       android:id="@+id/textView7" 
       android:gravity="center" 
       android:layout_weight="1" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:text="Sales Order" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText7" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:layout_height="fill_parent" 
       android:inputType="number" > 
        <requestFocus /> 
      </EditText> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:text="Customer Order Date" 
       android:gravity="center" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="date" /> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="vertical" > 

      <TextView 
       android:id="@+id/textView1" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:textAppearance="?android:attr/textAppearanceLarge" 
       android:text="INVOICE DETAILS" 
       android:gravity="center"/> 
     </LinearLayout> 

    </LinearLayout> 



    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 


     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:gravity="center" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView1" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:textAppearance="?android:attr/textAppearanceMedium" 
       android:text="Invoice Number" 
       android:gravity="center"/> 
      <EditText 
       android:id="@+id/editText1" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="wrap_content" 
       android:inputType="number" > 
       <requestFocus /> 
      </EditText> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView2" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:text="Date of issue of Invoice" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="date" /> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView3" 
       android:layout_width="fill_parent" 
       android:gravity="center" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:text="Time of Issue of Invoice" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 

      <EditText 
       android:id="@+id/editText3" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:inputType="textPersonName" /> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView4" 
       android:layout_weight="1" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:text="Date of Dispatch of Goods" 
       android:gravity="center" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
       <EditText 
       android:id="@+id/editText8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="date" /> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView5" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:layout_height="fill_parent" 
       android:text="Time of Dispatch of Goods" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText5" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:inputType="textPersonName" /> 
     </LinearLayout> 

      <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView6" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:text="Description of Goods" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText6" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:inputType="textPostalAddress" /> 
     </LinearLayout> 

      <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 

      <TextView 
       android:id="@+id/textView7" 
       android:layout_weight="1" 
       android:layout_width="fill_parent" 
       android:gravity="center" 
       android:layout_height="fill_parent" 
       android:text="Quantity Total" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText7" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:layout_weight="1" 
       android:inputType="number" > 
        <requestFocus /> 
      </EditText> 
     </LinearLayout> 

       <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView8" 
       android:layout_width="fill_parent" 
       android:gravity="center" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:text="Unit" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="date" /> 
     </LinearLayout> 

    </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView8" 
       android:layout_width="fill_parent" 
       android:gravity="center" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:text="Total Amount" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
      <EditText 
       android:id="@+id/editText8" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="date" /> 
       </LinearLayout> 

     <LinearLayout> 
     </LinearLayout> 
     </LinearLayout> 



    </LinearLayout> 

</ScrollView> 

XML 코드 실행시 "강제 닫기"가 표시됩니다. 오류 로그와 같은 오류를주고있다 : 1) 텍스트 뷰는 중앙 에 대한 인덱스와 몇 가지 더 많은 이상한 사람을 업데이트 할 수 없습니다 android.view.ViewGroup 2) 캐스트 할 수없는강제 종료 오류 간단한 양식 작동하지 않습니다.

+0

LogCat 및 ** 관련 코드 게시 ** –

+0

주제 조금 벗어나지 만 레이아웃을 정리하고 정리해볼 것을 제안합니다. 당신이 렌더링만큼 많은 비용이 드는 많은 선형 레이아웃을 사용하고 있습니다. 더 간단한 레이아웃은 시스템에서 더 쉬우 며 디버깅하기 쉽습니다. RelativeLayout을 살펴보면 더 복잡한 레이아웃을 만들 때 매우 강력합니다. http : //developer.android.com/reference/android/widget/RelativeLayout.html – Stevy888

답변

1

사용자가 다른 ID의의를 제공 할 필요가 당신의 texViews 시험해보기 :

<?xml version="1.0" encoding="utf-8"?> 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" > 

<LinearLayout 
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:orientation="vertical" >  

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 

     <TextView 
       android:id="@+id/textView1" 
       android:layout_width="fill_parent" 
       android:layout_height="0dp" 
       android:textAppearance="?android:attr/textAppearanceLarge" 
       android:layout_weight="1" 
       android:text="MARKETING SUPERVISOR"/>    

    </LinearLayout> 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 

     <TextView 
       android:id="@+id/textView2" 
       android:layout_width="fill_parent" 
       android:layout_height="0dp" 
       android:layout_weight="1" 
       android:textAppearance="?android:attr/textAppearanceLarge" 
       android:text="CHALLAN" 
       android:gravity="center"/> 
    </LinearLayout> 


    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" > 


     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
      <TextView 
       android:id="@+id/textView3" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:textAppearance="?android:attr/textAppearanceMedium" 
       android:layout_weight="1" 
       android:text="Perm.IncmTax Num." 
       android:gravity="center"/> 
      <EditText 
       android:id="@+id/editText1" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:inputType="number" 
       android:gravity="center" > 
       <requestFocus /> 
      </EditText> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:orientation="horizontal"> 
     <TextView 
      android:id="@+id/textView4" 
      android:layout_width="fill_parent" 
      android:layout_weight="1" 
      android:layout_height="fill_parent" 
      android:text="Customer Code Number" 
      android:textAppearance="?android:attr/textAppearanceMedium" 
      android:gravity="center"/> 
     <EditText 
      android:id="@+id/editText2" 
      android:layout_width="fill_parent" 
      android:layout_weight="1" 
      android:layout_height="fill_parent" 
      android:inputType="number" 
      android:gravity="center"> 

      <requestFocus /> 
     </EditText> 
    </LinearLayout> 

     <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="horizontal"> 
     <TextView 
      android:id="@+id/textView5" 
      android:layout_width="fill_parent" 
      android:layout_weight="1" 
      android:layout_height="fill_parent" 
      android:text="Customer Name" 
      android:gravity="center" 
      android:textAppearance="?android:attr/textAppearanceMedium" /> 

     <EditText 
      android:id="@+id/editText3" 
      android:gravity="center" 
      android:layout_weight="1" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:inputType="textPersonName" /> 
    </LinearLayout> 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="horizontal"> 
    <TextView 
      android:id="@+id/textView6" 
      android:gravity="center" 
      android:layout_weight="1" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:text="Customer Address" 
      android:textAppearance="?android:attr/textAppearanceMedium" /> 
     <EditText 
      android:id="@+id/editText4" 
      android:gravity="center" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_weight="1" 
      android:inputType="textPostalAddress" /> 
</LinearLayout> 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="horizontal"> 
    <TextView 
      android:id="@+id/textView7" 
      android:gravity="center" 
      android:layout_weight="1" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:text="Name of Cosignee" 
      android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
      android:id="@+id/editText5" 
      android:layout_width="fill_parent" 
      android:gravity="center" 
      android:layout_weight="1" 
      android:layout_height="fill_parent" 
      android:inputType="textPersonName" /> 
</LinearLayout> 

<LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="horizontal"> 
    <TextView 
       android:id="@+id/textView8" 
       android:layout_width="fill_parent" 
       android:layout_weight="1" 
       android:layout_height="fill_parent" 
       android:gravity="center" 
       android:text="Address of Cosignee" 
       android:textAppearance="?android:attr/textAppearanceMedium" /> 
     <EditText 
       android:id="@+id/editText6" 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:layout_weight="1" 
       android:gravity="center" 
       android:inputType="textPostalAddress" /> 
</LinearLayout> 

    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 

    <TextView 
     android:id="@+id/textView9" 
     android:gravity="center" 
     android:layout_weight="1" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:text="Sales Order" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText7" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:layout_height="fill_parent" 
     android:inputType="number" > 
      <requestFocus /> 
    </EditText> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView10" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:text="Customer Order Date" 
     android:gravity="center" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText8" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:inputType="date" /> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 

    <TextView 
     android:id="@+id/textView11" 
     android:layout_width="fill_parent" 
     android:layout_height="0dp" 
     android:layout_weight="1" 
     android:textAppearance="?android:attr/textAppearanceLarge" 
     android:text="INVOICE DETAILS" 
     android:gravity="center"/> 
</LinearLayout> 

</LinearLayout> 



<LinearLayout 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="vertical" > 


<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:gravity="center" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView12" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:textAppearance="?android:attr/textAppearanceMedium" 
     android:text="Invoice Number" 
     android:gravity="center"/> 
    <EditText 
     android:id="@+id/editText13" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="wrap_content" 
     android:inputType="number" > 
     <requestFocus /> 
    </EditText> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView14" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:text="Date of issue of Invoice" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText15" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:inputType="date" /> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView16" 
     android:layout_width="fill_parent" 
     android:gravity="center" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:text="Time of Issue of Invoice" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 

    <EditText 
     android:id="@+id/editText17" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:inputType="textPersonName" /> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView18" 
     android:layout_weight="1" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:text="Date of Dispatch of Goods" 
     android:gravity="center" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
     <EditText 
     android:id="@+id/editText19" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:inputType="date" /> 
</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView20" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:layout_height="fill_parent" 
     android:text="Time of Dispatch of Goods" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText21" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:inputType="textPersonName" /> 
</LinearLayout> 

    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView22" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:text="Description of Goods" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText23" 
     android:layout_width="fill_parent" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:inputType="textPostalAddress" /> 
</LinearLayout> 

    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 

    <TextView 
     android:id="@+id/textView24" 
     android:layout_weight="1" 
     android:layout_width="fill_parent" 
     android:gravity="center" 
     android:layout_height="fill_parent" 
     android:text="Quantity Total" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText25" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:gravity="center" 
     android:layout_weight="1" 
     android:inputType="number" > 
      <requestFocus /> 
    </EditText> 
</LinearLayout> 

     <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView26" 
     android:layout_width="fill_parent" 
     android:gravity="center" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:text="Unit" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText27" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:inputType="date" /> 
</LinearLayout> 

</LinearLayout> 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="horizontal"> 
    <TextView 
     android:id="@+id/textView28" 
     android:layout_width="fill_parent" 
     android:gravity="center" 
     android:layout_weight="1" 
     android:layout_height="fill_parent" 
     android:text="Total Amount" 
     android:textAppearance="?android:attr/textAppearanceMedium" /> 
    <EditText 
     android:id="@+id/editText29" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:inputType="date" /> 
     </LinearLayout> 

</LinearLayout> 

</ScrollView> 

희망이 있습니다.

+0

두 개의 ID 이름을 바꾸지 못한 것 같습니다. 그러나 어쨌든 해결책은 +1입니다. – Stevy888

+0

감사합니다. 그러나 이클립스는 나에게 오류를 줄 것이기 때문에 나는 이드를 놓친다 고 생각하지 않았다. 나는 나의 전화로 테스트를했는데 잘 동작한다. 내가 놓친 게 뭔지 말해 줄 수 있니? – 0gravity

+0

textView1이 몇 번 추가되었습니다. – Stevy888