0
Hello, I need to insert a button right after my listview. I mean, when I finish sliding my listview will have a button at the end.
I’m trying to do it this way:
<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 he doesn’t show up 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"));
It’s a simple list or this using custom Adapter?
– viana
@Custom acklay Adapter.
– Lucas Charles