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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -