public class MainActivity extends Activity { LinearLayout rotator; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); rotator = (LinearLayout) findViewById(R.id.rotator); ObjectAnimator rotation = ObjectAnimator.ofFloat(rotator, "rotationY", 0, 360); rotation.setDuration(3000); rotation.start(); } }
I have a code that rotates around the Y axis. The problem is that the perspective seems too βstrongβ - the edge of the view, which in the foreground becomes too large, and the edge in the background becomes too small. Is it possible to "lower" the coefficient perspecitve?
source share