Я хочу сделать EditText и кнопку OK той же самой высотой, но всегда получил EditText немного короче, чем Button.Android: Как установить EditText и Button на ту же высоту?
Я гугл и попытался следующим образом без успеха, ничего не изменилось:
- установить как EditText и кнопки на тот же высоту в пикселях
- оберточной EditText и Баттон в RelativeLayout. Установите высоту RelativeLayout и установить EditText и кнопки как для fillparent высоты
- набора AlignTop и AlignBottom на кнопке
Тема: android:theme="@android:style/Theme.NoTitleBar.Fullscreen
Может кто-то пожалуйста, помогите мне в этом? Благодаря!
Вот XML:
<RelativeLayout android:id="@+id/login_layout_ipAddr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#CEE6F0"
android:visibility="invisible">
<RelativeLayout android:id="@+id/login_layout_inner_ipAddr"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<EditText android:id="@+id/login_text_ipAddr"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:inputType="text"
android:textSize="5pt"
android:hint="@string/login_text_ipAddr" />
<Button android:id="@+id/login_btn_ipAddr"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="#00ABDF"
android:textColor="#FFFFFF"
android:text="@string/login_btn_ipAddr"
android:onClick="updateIPaddr"/>
</RelativeLayout>
</RelativeLayout>
не размещать весь макет. – Attaullah