Riskhan
Riskhan

Reputation: 4470

ListView and TextView in same screen

In my application has two Activities. One is main activity and other is activity for displaying menus. I choose listview for displaying menu. In app screen i planed to place listview in top and a textview in bottom. The textview is displaying a status from main activity. Is it possible ?

enter image description here

Upvotes: 0

Views: 409

Answers (2)

Gal Ben-Haim
Gal Ben-Haim

Reputation: 17803

putting the TextView bellow the ListView can be done with a RelativeLayout or even a TableLayout,

You can pass data between the main activity and the menu activity through the Intent

Upvotes: 0

jeet
jeet

Reputation: 29199

It is possible, but you you need to fix height of list on screen, like you can use RelativeLayout, and can set textview param to bottom of parent, and wrap content height, listview height to fill_parent, and above to textView.

Upvotes: 1

Related Questions