user1301428
user1301428

Reputation: 1783

How to align an element to the bottom of a layout and avoid it "covering" previous elements

The title is not very clear, so I'll try to explain better.

I have a RelativeLayout with an editable text box at its bottom. Before this editable textfield I have a ListView. Right now, if the list contains many elements, the last list rows are not shown because they are "under" the editable text field.

How can I avoid this problem and make the ListView end before the editable text field?

Upvotes: 0

Views: 67

Answers (2)

MAC
MAC

Reputation: 15847

set above property of listview in your xml

Upvotes: 0

Jiang Qi
Jiang Qi

Reputation: 4448

set the listview widget a attribute android:layout_above="@id/edittextid"

Upvotes: 2

Related Questions