简体   繁体   中英

How to make picture top of the list view on Android

I want put a picture at the top of the screen and then a description as a text view under the picture and finally on the bottom a list view. How can I do this?

You just need to create a LinearLayout and add imageView in it. Then add a listView to LinearLayout.

Alternatively, create a RelativeLayout, add imageView in it and add listView by setting attribute android:layout_below:"@+id/yourImageViewId" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM