this is my code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" >
</ListView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
>
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.73"
android:ems="10" />
<Button
android:id="@+id/button1"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enviar" />
</LinearLayout>
It is no running how I'd like. I need that the list view have an static size: all screen- the rest objects. And I need that the listview have in the top.
The problem is that if I put android:layout_height="match_parent" the listview's size is all screen. And if I put android:layout_height="wrap_content" the size is variable, and when I have a lot's of elements, the rest of object are not visible.
I need that the objects in the down of listview are always visibles. Some similar like a whatsapp conversation screen. Do you understand me? sorry for my bad English :)