android - Is it possible to show RecyclerView preview in layout editor with horizontal orientation? -


recyclerview shown vertical orientation, , can not set property, because orientation belongs linearlayoutmanager object. way simulate horizontal layout?

anyway linearlayoutmanager created in code set horizontal.

llm.setorientation(linearlayoutmanager.horizontal); 

enter image description here

try add these parameters recyclerview inside layout xml:

  android:orientation="horizontal"   android:scrollbars="horizontal"   app:layoutmanager="linearlayoutmanager" 

Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

I could not debug scala remote application on eclipse or IntelliJ IDEs -