2

How to show Action bar in application which is showing maps and use mapActivity. I can not use Sherlock action bar because it should be SherlockActivity and I have MapsActivity. I have to support it from Api level 9+. From 11+ I have the native action bar implemented and it works well. I have to use maps api ver 1 and can not use in this reales the new version 2 google maps.

4

1 に答える 1

1

おそらく、新しい Google Play Services をご覧ください。MapFragments を使用できる新しい Maps API でそれらを読みました。おそらく、これらのフラグメントを Sherlock ベースのアクティビティで使用できます。もう 1 つの方法は、TabHost を使用して、Sherlock ベースのアクティビティ内で MapActivity をホストすることです。しかし、それがどれほどのパフォーマンスを発揮するかはわかりません。

于 2012-12-07T09:02:15.267 に答える