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

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

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

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