The RecyclerView is displayed in a vertical orientation and cannot set this property because the orientation belongs to the object LinearLayoutManager. Any way to simulate a HORIZONTAL layout?
LinearLayoutManager
In any case LinearLayoutManager, the code created is set to HORIZONTAL.
llm.setOrientation(LinearLayoutManager.HORIZONTAL);
try adding these parameters to your RecyclerView inside your xml layout:
android:orientation="horizontal" android:scrollbars="horizontal" app:layoutManager="LinearLayoutManager"
AFAIK, . LinearLayoutManager Horizontal , .
LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
RecyclerView , , RecyclerView, Java Adapter, recyclerView java- , XML , XML recyclerView, , Java, , LayoutManager .