读书人

android 里如何实现一个图层比如说小

发布时间: 2013-08-01 15:23:18 作者: rapoo

android 里怎么实现一个图层,比如说我现在有个Activity,要在上面加一个标记
android 里怎么实现一个图层,比如说我现在有个Activity,要在上面加一个标记。类似与Google map OverLay一样。

不知道大家有什么想法呢? 请大侠指教一下


android:layout_height="wrap_content"
android:text="@string/hello" />
<ImageView
android:id="@+id/iv"
android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
[解决办法]
如果多张图片,你可以动态加载啊。不一定非要都在xml中写入。同时显示多张图片也有控件使用啊。其实上面的几位都说得对,最简单的方法就是用view,你可以把该view写入xml布局文件中,也可以在代码中自己使用。至于你说的那个OverLay,我知道你的意思,就是在一个图层上面显示图片,在mapview中,我弄过!你要的话,我可以给你。Q:984326013
[解决办法]
很好很强大!!!!

读书人网 >Android

热点推荐