안녕하세요 오랜만에 글쓰네요
레이아웃을 weight 를 이용하여
1 : 1 : 1 화면을 만들었습니다.
그런뒤 그안에 버튼을 집어넣으니 그 비율이 깨지는 거예요
버튼이 들어간 부분이 더 넓게 차지하게 되는거에요
이런 현상을 미리 경험하신 분 없으신가요??
해결하신분 알려주시면 너무 감사할거예요
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="3"
android:background="#ffffffff">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:layout_margin="0dip"
android:background="#ffff0000">
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:layout_margin="0dip"
android:background="#ff00ff00">
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:background="#ff0000ff">
</LinearLayout>
</LinearLayout>


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="3"
android:background="#ffffffff">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:layout_margin="0dip"
android:background="#ffff0000">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/loginButton1"
android:layout_padding="0dip"
android:text="a"
android:layout_weight="1"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:layout_margin="0dip"
android:background="#ff00ff00">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_padding="0dip"
android:id="@+id/loginButton2"
android:text="b"
android:layout_weight="1"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:weightSum="1"
android:background="#ff0000ff">
</LinearLayout>
</LinearLayout>