New requirements, the code has been sorted out, the results such as:
Single:
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8D/D3/wKioL1ir-rTDQ4LIAA2HB-cO4FM433.png "title=" Qq20170221163025.png "width=" "height=" 368 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:368PX; "alt = "Wkiol1ir-rtdq4liaa2hb-co4fm433.png"/>
Multiple:
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8D/D5/wKiom1ir-frCV_jwAANxRNGBrmE265.png "title=" Qq20170221162652.png "width=" "height=" 361 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:361PX; "alt = "Wkiom1ir-frcv_jwaanxrngbrme265.png"/>
Demo
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8D/D5/wKiom1ir-HKwP6GfAACWnEKGK78617.png "title=" Qq20170221162052.png "alt=" Wkiom1ir-hkwp6gfaacwnekgk78617.png "/>
Address: https://github.com/geeklx/MyApplication/tree/master/p010_recycleviewall/src/main/java/com/example/p010_ Recycleviewall/recycleviewdifferentitem
This article is from the "Liangxiao Technology Center" blog, please be sure to keep this source http://liangxiao.blog.51cto.com/3626612/1899889
Android Studio Phase 32nd-Recycleview different layout adapter notation