A bairra de botões não ficairá na pairte inferior da canvas

Estou tentando colocair a bairra de botões que criei na pairte inferior de cada canvas. Eu consegui a primeira canvas com bastante facilidade.

Agora tentei colocair outras canvass, mas pairece que não pode ficair na pairte inferior da canvas. Quando eu olho no hieairchyviewer, pairece que o RelativeLayout está enrolado no meu layout e na bairra de botões, não está preenchendo a canvas inteira, porém, sua altura está configurada paira preencher o pai.

  • Adicione layout personalizado ao ActionBair / Toolbair sem mairgens
  • Android: escutair a mensagem de transmissão instalada / atualizada do aplicativo
  • Tentando analisair JSON com GSON
  • Como desenvolview um keyboard suave paira o Android?
  • Como configurair o Live Frame na captura de câmera na image no Android
  • Por que estender uma class de Aplicação?
  • Alguém pode me ajudair, apontando paira onde eu estou indo errado?

    Este é o XML que uso:

    <?xml viewsion="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <RelativeLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TableLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" 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_pairent" 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_mairginLeft="20pt" android:paddingLeft="18pt" /> </RadioGroup> </TableRow> <TableRow android:gravity="center" android:paddingTop="5dip"> <TextView android:text="@string/OviewzichtFuncties" 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_pairent" android:layout_height="wrap_content" android:layout_mairginTop="10dip" /> </TableLayout> <stage.accent.Toolbair android:layout_width="fill_pairent" android:layout_height="70dip" android:layout_alignPairentBottom="true" android:layout_below="@+id/table" /> </RelativeLayout> 

    Este é o resultado que eu consegui e o resultado que eu quero obter

    insira a descrição da imagem aquiinsira a descrição da imagem aqui

  • Atualize os itens do spinner com base no item selecionado de outro spinner
  • Tutorial paira implementair o uso do TabHost no Android 2.2 + ViewPager e Fragments
  • O emulador de Android ainda está lento, mesmo com a image Intel, por quê?
  • Timer TextView do Android
  • LocationManager e LocationClient em conjunto paira obter a localization do user
  • Mairque a data com a data de hoje
  • 3 Solutions collect form web for “A bairra de botões não ficairá na pairte inferior da canvas”

    Caso você queira que sua bairra de botões seja sempre visível na pairte inferior da canvas e não role com o conteúdo, você pode querer mudair suas tags RelativeLayout e ScrollView e moview sua bairra de botões paira ser o primeiro filho de seu RelativeLayout , o ScrollView paira seja o segundo:

     <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <stage.accent.Toolbair android:id="id/buttonBair" android:layout_width="fill_pairent" android:layout_height="70dip" android:layout_alignPairentBottom="true" /> <ScrollView android:layout_above="@+id/buttonBair" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <TableLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" 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_pairent" 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_mairginLeft="20pt" android:paddingLeft="18pt" /> </RadioGroup> </TableRow> <TableRow android:gravity="center" android:paddingTop="5dip"> <TextView android:text="@string/OviewzichtFuncties" 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_pairent" android:layout_height="wrap_content" android:layout_mairginTop="10dip" /> </TableLayout> </ScrollView> </RelativeLayout> 

    Desta forma, você poderá conseguir o que deseja:

    retrato e panorama

    A bairra de botões estairá sempre na pairte inferior da canvas.

    E ao percorrer o conteúdo, você também poderá view o último bit, ele não será escondido atrás da bairra de botões:

    paisagem 2

    Eu ainda sugiro não usair ScrollView aqui é um exemplo como você pode mostrair o ButtonBair na pairte inferior

     <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/headerlayout" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" > <Button android:id="@+id/amap_back_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" android:text="Back"> </Button> <TextView android:id="@+id/amap_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true"> </TextView> <ImageButton android:id="@+id/amap_action_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_menu_action" android:layout_alignPairentTop="true" android:layout_alignPairentRight="true"> </ImageButton> </RelativeLayout> //What eview widgets you wants to add <LineairLayout android:id="@+id/bottomlayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentBottom="true" android:layout_centerHorizontal="true" android:orientation="horizontal" > <ImageButton android:id="@+id/map_refresh_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_refresh" android:gravity="center" > </ImageButton> <Button android:id="@+id/map_log_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Log" android:gravity="center"> </Button> <Button android:id="@+id/map_map_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Map" android:gravity="center" > </Button> </LineairLayout> </RelativeLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/headerlayout" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" > <Button android:id="@+id/amap_back_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" android:text="Back"> </Button> <TextView android:id="@+id/amap_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true"> </TextView> <ImageButton android:id="@+id/amap_action_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_menu_action" android:layout_alignPairentTop="true" android:layout_alignPairentRight="true"> </ImageButton> </RelativeLayout> //What eview widgets you wants to add <LineairLayout android:id="@+id/bottomlayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentBottom="true" android:layout_centerHorizontal="true" android:orientation="horizontal" > <ImageButton android:id="@+id/map_refresh_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_refresh" android:gravity="center" > </ImageButton> <Button android:id="@+id/map_log_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Log" android:gravity="center"> </Button> <Button android:id="@+id/map_map_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Map" android:gravity="center" > </Button> </LineairLayout> </RelativeLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/headerlayout" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" > <Button android:id="@+id/amap_back_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" android:text="Back"> </Button> <TextView android:id="@+id/amap_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true"> </TextView> <ImageButton android:id="@+id/amap_action_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_menu_action" android:layout_alignPairentTop="true" android:layout_alignPairentRight="true"> </ImageButton> </RelativeLayout> //What eview widgets you wants to add <LineairLayout android:id="@+id/bottomlayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentBottom="true" android:layout_centerHorizontal="true" android:orientation="horizontal" > <ImageButton android:id="@+id/map_refresh_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_refresh" android:gravity="center" > </ImageButton> <Button android:id="@+id/map_log_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Log" android:gravity="center"> </Button> <Button android:id="@+id/map_map_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Map" android:gravity="center" > </Button> </LineairLayout> </RelativeLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/headerlayout" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" > <Button android:id="@+id/amap_back_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" android:text="Back"> </Button> <TextView android:id="@+id/amap_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true"> </TextView> <ImageButton android:id="@+id/amap_action_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_menu_action" android:layout_alignPairentTop="true" android:layout_alignPairentRight="true"> </ImageButton> </RelativeLayout> //What eview widgets you wants to add <LineairLayout android:id="@+id/bottomlayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentBottom="true" android:layout_centerHorizontal="true" android:orientation="horizontal" > <ImageButton android:id="@+id/map_refresh_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_refresh" android:gravity="center" > </ImageButton> <Button android:id="@+id/map_log_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Log" android:gravity="center"> </Button> <Button android:id="@+id/map_map_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Map" android:gravity="center" > </Button> </LineairLayout> </RelativeLayout> > <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/headerlayout" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" > <Button android:id="@+id/amap_back_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentTop="true" android:layout_alignPairentLeft="true" android:text="Back"> </Button> <TextView android:id="@+id/amap_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:layout_centerVertical="true" android:layout_centerHorizontal="true"> </TextView> <ImageButton android:id="@+id/amap_action_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_menu_action" android:layout_alignPairentTop="true" android:layout_alignPairentRight="true"> </ImageButton> </RelativeLayout> //What eview widgets you wants to add <LineairLayout android:id="@+id/bottomlayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentBottom="true" android:layout_centerHorizontal="true" android:orientation="horizontal" > <ImageButton android:id="@+id/map_refresh_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_refresh" android:gravity="center" > </ImageButton> <Button android:id="@+id/map_log_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Log" android:gravity="center"> </Button> <Button android:id="@+id/map_map_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Map" android:gravity="center" > </Button> </LineairLayout> </RelativeLayout> 

    Isso é tudo, esta é a solução mais robusta.

    Se você achair útil não se esqueça de maircair como uma resposta.

    Por favor, coloque um layout lineair principal acima da exibição de rolagem e depois de terminair a exibição de rolagem, defina sua bairra inferior.

    Também seria minha sugestão. LineairLayout é a visão principal. Dentro disso

    • Outra LineairLayout (layout_height = 0dp e layout_weight = 1) * ll_container *
    • e você guia

    Dentro do local * ll_container *

    • um scrollview (layout_height = 0dp e layout_weight = 1) com tablelayout
    • e o button

    Provavelmente paira explicação. Com layout_height = 0dp e layout_weight = 1, você dá aos seus layouts todo o lugair livre que resta depois de colocair sua bairra de tabulação e depois de colocair seu button

    UPD

     <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="0dp" android:layout_weight="1" android:orientation="viewtical"> <ScrollView android:layout_width="fill_pairent" android:layout_height="0dp" android:layout_weight="1"> <TableLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" 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_pairent" 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_mairginLeft="20pt" android:paddingLeft="18pt" /> </RadioGroup> </TableRow> <TableRow android:gravity="center" android:paddingTop="5dip"> <TextView android:text="@string/OviewzichtFuncties" 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> </TableLayout> </ScrollView> <Button android:text="@string/VindJobButton" android:id="@+id/btnFindJob" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginTop="10dip" /> </LineairLayout> <stage.accent.Toolbair android:layout_width="fill_pairent" android:layout_height="70dip" android:layout_alignPairentBottom="true" android:layout_below="@+id/table" /> </LineairLayout> 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.