Im new to the android programming language and am trying to get an android application that has a ListView as half the screen and a ScrollView as the other half. Then I was trying to get it so when an item is clicked in the ListView the information in the item would be displayed as a TextView in the ScrollView. In the ListView there are 2 TextViews.
is this possible?
thank you for the help!
The most simple solution:
Put the
ListViewandScrollViewin a horizontalLinearLayout, give them bothandroid:layout_width="0dp"andandroid:layout_weight="1". If you want the screen to be split vertically instead, use a verticalLinearLayoutand give the two viewsandroid:layout_height="0dp"instead oflayout_width.A more complicated, but better solution is to use Fragments.