전체화면에 LinearLayout을 하나 두고 가로,세로를 fill_parent로 설정해 둡니다. 그리고 hohorizontal로 설정해 LinearLayout안을 체울때

 

왼쪽부터 오른쪽으로 체워지게 합니다.

 

이 LinearLayout안에는 3개의 개체를 둘껀데,   마진10dip, EditText, 빈공간 10dip, ImageButton, 마진10dip    <-- 이런식으로 두려고 합니다.

 

양 끝의 10dip 마진은 전체화면 LinearLayout에 android:layout_marginRight, android:layout_marginLeft를 10dip씩 주어 해결하였습니다.

 

문제는 나머지  EditText, 빈공간 10dip, ImageButton 입니다.

 

최종적으로 하고자 하는 것은      =>      일정한 크기가 정해져있는 EditText, 빈공간 10dip, ImageButton 인데 폰에 따라 해상도가 달라지기

 

때문에 정해진 크기보다 비율로서 마추려 합니다. EditText의 크기와 빈공간 10dip은 폰이 달라져도 유지하지만 문제는 ImageButton의

 

크기입니다. EditText를 100dip이라 정할 때, EditText 100dip, 빈공간 10dip, 나머지부분 ImageButton을 둘 때, ImageButton의 가로를 wrap_content

 

이라 두면 폰이 바뀌어도 크기가 같고, fill_parent로 두면 EditText,빈공간을 밀어버리고 혼자 독차지 합니다.

 

어떻게하면 ImageButton만 가변적으로 변하게 할 수 있을까요?