질문.png


 

안녕하세요.
xml로 레이아웃을 설계하여..
보여주고 있는데요..


이상하게 레이아웃 설계시는 

위에 그림의 아래쪽 레이아웃처럼 넓이에 맞춰서 잘됩니다.
그런데 AVD를 실행하면  위와 같이.. 넓이가 화면에 안맞춰집니다..
구조는 오른쪽 아래와 같고..

XML소스는 아래와 같습니다.
어떤 것이 문제인지 부탁드리겠습니다.
아직 초보라 이해가 잘안되는 부분이 많으니 자세한 설명 부탁드리겠습니다.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:orientation="horizontal"
   android:layout_height="match_parent"
   android:background="#4b0082"
   android:clickable="true"
   android:id="@+id/DisplayCard_Step1_LL">
   
    <CheckBox
     android:layout_width="wrap_content"
     android:layout_gravity="center_vertical"
     android:id="@+id/DisplayCard_Step1_CB_Base"
     android:layout_height="wrap_content">
    </CheckBox>
    <LinearLayout
     android:layout_width="match_parent"
     android:layout_weight="1"
     android:orientation="vertical"
     android:background="#4B0082"
     android:id="@+id/DisplayCard_Step1_LL_Card"
     android:layout_height="wrap_content">
        <ImageView
         android:src="@drawable/icon"
         android:layout_weight="1"
         android:clickable="true"
         android:background="#87CEFA"
         android:layout_width="match_parent"
         android:id="@+id/DisplayCard_Step1_ImgCard"
         android:layout_height="wrap_content">
        </ImageView>
        <LinearLayout
         android:layout_height="wrap_content"
         android:layout_width="match_parent"
         android:orientation="horizontal"
         android:id="@+id/DisplayCard_Step1_LL_Info">
            <ImageView
             android:layout_height="80dp"
             android:layout_width="80dp"
             android:id="@+id/DisplayCard_Step1_ImgPerson">
            </ImageView>
            <LinearLayout
             android:layout_height="match_parent"
             android:layout_width="wrap_content"
             android:orientation="vertical"
             android:layout_weight="1"
             android:id="@+id/DisplayCard_Step1_LL_TxtInfo">
                <TextView
                 android:layout_height="wrap_content"
                 android:layout_width="match_parent"
                 android:textSize="24sp"
                 android:paddingTop="2dp"
                 android:paddingLeft="5dp"
                 android:hint="Name"
                 android:id="@+id/DisplayCard_Step1_Name">
                </TextView>
                <TextView
                 android:layout_height="wrap_content"
                 android:layout_width="match_parent"
                 android:textSize="18sp"
                 android:paddingLeft="5dp"
                 android:paddingTop="2dp"
                 android:hint="Company"
                 android:id="@+id/DisplayCard_Step1_Company">
                </TextView>
                <TextView
                 android:layout_height="wrap_content"
                 android:layout_width="match_parent"
                 android:paddingLeft="5dp"
                 android:paddingTop="2dp"
                 android:textSize="15sp"
                 android:hint="Position"
                 android:id="@+id/DisplayCard_Step1_Position">
                </TextView>
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
</LinearLayout>