RecyclerView is shown with vertical orientation, and can not set this property, because orientation belongs to the LinearLayoutManager
object. Any way to simulate HORIZONTAL layout?
Anyway the linearLayoutManager
created in code is set to HORIZONTAL.
llm.setOrientation(LinearLayoutManager.HORIZONTAL);
try to add these parameters to your RecyclerView inside your layout xml:
android:orientation="horizontal"
android:scrollbars="horizontal"
app:layoutManager="LinearLayoutManager"
RecyclerView won't show your actual data in the Editor Layout as the data you add in your RecyclerView is added Dynamically in your java code through Adapter and you implement a layout manager for your recyclerView in your java code and your Editor Layout displays the elements that are in your xml, so in your XML file its just a plain recyclerView which has no idea of what data is added in your Java implementation or what LayoutManager is to be implemented on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With