i have issue is that i wanna to creat table in landscape mode while the activity in portrait mode so i think that i can make it with rotated recyclerView XML here
    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:rotation="90"
        android:background="@color/colorPrimary"
        tools:layout_editor_absoluteX="8dp" />
and java
        DisplayMetrics displayMetrics = new DisplayMetrics();
        getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
        int height = displayMetrics.heightPixels;
        int width = displayMetrics.widthPixels;
        recyclerView.setLayoutParams(new FrameLayout.LayoutParams(height, width));
so in the case i have rotated recyclerView but isn't in ther place