Answer the question
In order to leave comments, you need to log in
How to rotate View using setRotationX?
There is a layout:
<View android:layout_width="300dp"
android:layout_height="300dp"
android:id="@+id/square"/>
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
View square= view.findViewById(R.id.square);
square.setRotationX(45f);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question