Tôi gặp sự cố khi định vị các yếu tố bố cục. AutoComplete trong TableLayout của tôi và nút sau khi nó được mở rộng TableRow lớn hơn chiều rộng của màn hình. Bất cứ ai cũng có một ý tưởng tại sao? Dưới đây là mã XML của tôi cũng như hình ảnh của vấn đề.Android - Yếu tố giao diện người dùng tắt màn hình
Cảm ơn trước !!
<?xml version="1.0" encoding="utf-8"?>
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView android:id="@+id/installation"
android:textSize="14sp" android:completionThreshold="3" />
</TableRow>
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/btn_find" android:text="@string/btn_find"></Button>
</TableRow>
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/error" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:paddingTop="20px"
android:textColor="#FF0000" />
</TableRow>
Nó cũng giống như trên thiết bị thực tế? –