Hello, I need to insert a button right after my listview. That is, when I finish sliding my listview will have a button at the end.
I'm trying to do as follows:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.gerdaumanagement.gerdaumanagement.tipoMensal"
android:orientation="vertical">
<ListView
android:id="@+id/lista"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true">
</ListView>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Enviar"
android:textAllCaps="true" />
</LinearLayout>
But it does not appear at the end.
My listView is being populated:
public List<AvaliacaoMensal> todosMensal() {
List<AvaliacaoMensal> dados = new ArrayList<AvaliacaoMensal>();
dados.add(new AvaliacaoMensal("As máquinas e equipamentos possuem selo de liberação por um líder Gerdau e está dentro do prazo de validade?", 'A', "Condição Fisica"));