Android 谷歌地图v2动画
我的应用程序由一个从左到右的活动中的三个片段组成。用户可以像滑动抽屉一样向左或向右设置动画。除MapFragment可见外,这在所有情况下都能完美工作 在这两种情况下,MapFragment都已在TabHost中实例化,但在第二个图像中可见 我以编程方式设置了很多维度,但这是基本的视图层次结构(如果有帮助的话):Android 谷歌地图v2动画,android,google-maps,android-animation,surfaceview,Android,Google Maps,Android Animation,Surfaceview,我的应用程序由一个从左到右的活动中的三个片段组成。用户可以像滑动抽屉一样向左或向右设置动画。除MapFragment可见外,这在所有情况下都能完美工作 在这两种情况下,MapFragment都已在TabHost中实例化,但在第二个图像中可见 我以编程方式设置了很多维度,但这是基本的视图层次结构(如果有帮助的话): <xxxx.xxxx.WideLayout xmlns:android="http://schemas.android.com/apk/res/android" androi
<xxxx.xxxx.WideLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frag_container"
android:layout_width="900dp"
android:layout_height="match_parent"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/left_menu"
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/login_blackboard" >
<fragment
android:id="@+id/left_list"
android:name="xxxx.xxxx.MenuFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="MENU" />
</LinearLayout>
<LinearLayout
android:id="@+id/middle_menu"
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
</LinearLayout>
<fragment
android:id="@+id/frag_action"
android:name="xxx.xxxx.ActionFragment"
android:layout_width="0dp"
android:layout_height="match_parent" />
</xxxx.xxxx.WideLayout>
动画结束后,有没有关于将地图保持在其边界内的建议?在显示菜单时,在地图前面放置一个透明布局。我不知道为什么,但这是一个重新绘制的问题。希望有帮助;)