相关疑难解决方法(0)

如何使Rotate3dAnimation更加平滑?

在我的应用程序中,我使用Rotate3dAnimation 来显示Google地图.代码工作正常,但动画不流畅,旋转视图时也可以看到一些线条.请看一下我的代码并建议我如何让这个动画更顺畅?我们高度赞赏以任何其他有效方式实现此类动画的建议.在此输入图像描述

public class EventsActivity extends MapActivity implements DialogInterface.OnDismissListener {

        private EventsItemModel     eventsItemModel;
        private Integer             eventItemId;
        private Integer             eventCategoryId;
        private static MapOverlay   mapOverlay;
        Drawable                    marker;
        Context                     context;
        private static String       MY_LOCATION = "My Location";
        private ViewGroup           mContainer;
        private ImageView           mImageView;
        private MapView             mMapView;
        private static boolean      isFlipped   = false;

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.event_item_detail);
            mContainer = (ViewGroup) findViewById(R.id.event_container);
            // Since we are caching large views, we want to keep their cache
            // between each animation
            mContainer.setPersistentDrawingCache(ViewGroup.PERSISTENT_ANIMATION_CACHE); …
Run Code Online (Sandbox Code Playgroud)

android android-layout

13
推荐指数
2
解决办法
4489
查看次数

标签 统计

android ×1

android-layout ×1