安卓:绘制自定义边框周围列表视图? [英] Android: Draw custom border around listview?

查看:316
本文介绍了安卓:绘制自定义边框周围列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得在这一个ListView一个ListActivity。我要画一个重复的图像周围的边框(在它的上面(我猜的列表视图中呈示的后))

I've got a ListActivity with a ListView in it. I need to draw a repeating image around the border ("on top of it (I guess after the listview is renderered))

我怎么能钩在我自己的绘图code这个?

How can I hook in my own drawing code for this?

推荐答案

您可以使用的FrameLayout引起的ListView与该填满整个画面的图重叠。在此背景下查看您可以平铺图像,或使用自己的绘制方法,编写自己的自定义视图。

You can use a FrameLayout to cause the ListView to overlap with a view that fills the entire screen. In this background view you could tile an image, or write your own custom View with your own drawing method.

这篇关于安卓:绘制自定义边框周围列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆