dp를 지정하지 않고 라디오 버튼을 자동으로 정렬하려면 어떻게해야합니까?버튼을 자동으로 정렬하는 방법
아래 예제에서는 라디오 버튼 너비 80 및 높이 70이 설정되어 있습니다. 대신 fill_parent 또는 wrap_content처럼이 작업을 수행하려고합니다. 어떻게해야합니까?
<RadioGroup android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:checkedButton="@+id/allcontacts"
android:id="@+id/contactgroup">
<RadioButton android:id="@+id/allcontacts"
android:width="80dip"
android:height="70dip"/>
<RadioButton android:id="@+id/categories"
android:width="80dip" android:height="70dip" />
<RadioButton android:id="@+id/favourites"
android:width="80dip" android:height="70dip" />
고정 크기를 적용하는 대신 'wrap_content'를 적용하십시오. – RobinHood
그냥 "정렬하고 싶다"는 말 대신 ... 어떻게 정렬하고 싶은지 말하십시오 ... – JoxTraex
나는이 모든 버튼을 equel 간격으로 수평 정렬하고 싶습니다. dp에서 높이와 너비를 지정하지 않고 이걸 원합니다. – Naruto