开发者

Customized ListView with scolling background

EDIT: Solved this by from Java-code adding headers and footers with transparent background to the ListView.

Hi, I'm trying to make a ListView that has a gradient as a background and the content inside a frame. I have some screenshots of what I'm trying to acheive. The first screenshots shows how I want it too look from start. The list is shown in a box with rounded corners and a green background. This is acheived by adding padding to the LinearLayout surronding the ListView. However, when I add padding on top, the scrolling looks like in the third picture, which is not what I wa开发者_运维问答nt. The first field with name and phonenumber is a header for the listview.

Any suggestions on how to make the listview behave like this?

Customized ListView with scolling background

Customized ListView with scolling background

Customized ListView with scolling background


You should use Relative layout for solving this problem.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜