开发者

Screen contains MapView and ListView

开发者 https://www.devze.com 2023-03-15 19:36 出处:网络
If I create a MapActivity that has, in its layout, a MapView and a ListView. And that I use findViewById() to get to the ListView will I be able to correctly manage my listview items\' onclick events

If I create a MapActivity that has, in its layout, a MapView and a ListView. And that I use findViewById() to get to the ListView will I be able to correctly manage my listview items' onclick events etc?

The fact is that I'm a beginner in Android, and I would like to do a layout like this for my tablet : http://img69.imageshack.us/img69/7623/mapqk.png

First I started to use Fragments, however I encountered some trouble to use MapVi开发者_如何学Cew inside fragment... So I decided to start from scratch without the Fragment system.


That should work just fine. It is not at all a special layout: you can just use a RelativeLayout and put them side by side, or a set of nested LinearLayouts with appropriate weights. Events should function in standard fashion as well.

0

精彩评论

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