각 화면 하단에 만든 버튼 막대를 넣으려고합니다. 나는 처음 화면을 꽤 쉽게 만들었습니다.버튼 막대가 화면 하단에 붙지 않습니다.
이제 다른 화면에 넣으려고했으나 화면 하단에 붙지 않는 것으로 보입니다. hiearchyviewer를 보면 RelativeLayout이 내 레이아웃과 단추 막대를 감싸는 것처럼 보이지만 전체 화면을 채우지는 못합니다. 높이가 부모를 채우도록 설정되어 있습니다.
어디에서 잘못 됐는지 지적하면 누구든지 도와 줄 수 있습니까?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<TableLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="5pt" android:id="@+id/table"
android:stretchColumns="1">
<TableRow>
<TextView android:text="@string/Arbeiderbediende"
android:id="@+id/txtArbeiderBediende" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow android:gravity="center">
<RadioGroup android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal"
android:id="@+id/group1">
<RadioButton style="@style/RadioButton"
android:layout_width="wrap_content" android:id="@+id/rbArbeider"
android:text="@string/Arbeider" android:layout_height="wrap_content"
android:paddingLeft="18pt" />
<RadioButton style="@style/RadioButton"
android:layout_width="wrap_content" android:id="@+id/rbBediende"
android:text="@string/Bediende" android:layout_height="wrap_content"
android:layout_marginLeft="20pt" android:paddingLeft="18pt" />
</RadioGroup>
</TableRow>
<TableRow android:gravity="center" android:paddingTop="5dip">
<TextView android:text="@string/OverzichtFuncties"
android:id="@+id/txtFuncties" android:layout_width="0dip"
android:layout_weight="1" android:layout_height="wrap_content" />
<Spinner android:layout_height="wrap_content" style="Spinner"
android:layout_width="0dip" android:layout_weight="2"
android:id="@+id/cmbFuncties" />
</TableRow>
<TableRow android:gravity="center" android:paddingTop="5dip">
<TextView android:text="@string/Regio" android:id="@+id/txtRegio"
android:layout_width="0dip" android:layout_weight="1"
android:layout_height="wrap_content" />
<Spinner android:layout_height="wrap_content"
android:layout_width="0dip" android:layout_weight="2" android:id="@+id/cmbRegio" />
</TableRow>
<TableRow android:gravity="center" android:paddingTop="5dip">
<TextView android:text="@string/Opleiding" android:id="@+id/txtOpleidingsniveau"
android:layout_width="0dip" android:layout_weight="1"
android:layout_height="wrap_content" />
<Spinner android:layout_height="wrap_content"
android:layout_width="0dip" android:layout_weight="2"
android:id="@+id/cmbOpleidingsniveau" />
</TableRow>
<Button android:text="@string/VindJobButton" android:id="@+id/btnFindJob"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="10dip" />
</TableLayout>
<stage.accent.Toolbar android:layout_width="fill_parent"
android:layout_height="70dip" android:layout_alignParentBottom="true"
android:layout_below="@+id/table" />
</RelativeLayout>
이 내가 달성 한 결과는 그 결과 내가
내 질문이 있습니다. 이 화면보다 큽니다 .ScrollView를 구현 했으므로 스크롤하는 것이 문제가되지 않습니다. 그러나 화면의 마지막 부분 (예 : 제출 단추)이 막대 뒤에 숨겨집니다. 어떻게 해결할 수 있습니까? ? – Hannelore
위의 예제는 단추 표시 줄을 항상 보이도록합니다 (내용과 함께 스크롤하지 않습니다). 또는 오해하고 제출 단추가 단추 표시 줄에 없습니까? – rekaszeru
예, 단추 표시 줄을 고정시키고 싶습니다. 위에서 보았 듯이 버튼이 있는데, 예를 들어 콘텐츠 화면 맨 아래에 있습니다. 그러면 – Hannelore