开发者

How to make picture top of the list view on Android

开发者 https://www.devze.com 2023-03-17 18:10 出处:网络
I want put a picture at the top of the screen and then a description as a text viewunder the picture and finally on the bottom a list view. How can I do this? 开发者_高级运维You just need to create a

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".

0

精彩评论

暂无评论...
验证码 换一张
取 消