0

Android Custom recyclerview 2 row design

Is this possible :- That i design 2 rows one with image on left side O----------. (O is image - is text) and second with image right side. ------------O And recyclerview fetch it alternately. O--------- ----------O O--------- ----------O O--------- ----------O

5th Jun 2020, 6:21 AM
Manjit Kumar
Manjit Kumar - avatar
5 ответов
+ 1
Why don't you try it on your computer? you can find all your doubt clear.
6th Jun 2020, 3:46 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
Your design is pretty confusing plz explain more?
7th Jun 2020, 2:36 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
Really interesting, however solution for this is quite simple or might be complicated.You can also test with Listview as well by creating two different layouts. Instead explaining deep im providing a link that have same problem as yours. https://stackoverflow.com/questions/23730220/displaying-listview-items-in-opposite-directions-android
7th Jun 2020, 4:08 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
6th Jun 2020, 11:52 PM
Manjit Kumar
Manjit Kumar - avatar
0
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ Okay , as you know... To create custom recyclerview.. you have to design a single row... If you putted a image in right side.. then every row of your recyclerview view will have same design But i want.. 1st row to have image on left and 2nd row to have image on right and again 3rd row to have image on left side.... Again 4th row to have image on right.. And this continues in same pattern
7th Jun 2020, 2:56 AM
Manjit Kumar
Manjit Kumar - avatar