在我的布局中,我有一组图块(类似于 Windows 手机主屏幕)。我正在尝试翻转图块以显示更多内容。我看过卡片翻转,但它会翻转整个片段。我希望它翻转整个布局的一部分。我尝试使用 Object animator 旋转它。这是我的代码..
View v = findViewById(R.id.iotd_relative);
ObjectAnimator animation = ObjectAnimator.ofFloat(v, "rotationY", 0.0f, 360f);
animation.setDuration(3600);
animation.setRepeatCount(ObjectAnimator.INFINITE);
animation.setInterpolator(new AccelerateDecelerateInterpolator());
animation.start();
翻转时是否有可能调用另一个布局?