i working on pos system needs delivery screen in which, have show orders in number of columns of list in cardview.
something shown in image:

i using cardslib cardsview in app. can please me implement type of layout cardslib. or can suggest me have have kinda layout in app??
i tried twowayview couldn't idea breaking card in multiple columns yellow card shown in above image. please me..
finally, found workaround query. found twoway- gridview lib did me add data vertically , scroll horizontally. used library keeping number of rows , columns constants according screen size , referred them in gridview. following code 1 used above library.
<com.jess.ui.twowaygridview xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/horz_gridview" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:background="#ffc4c4c4" app:cachecolorhint="#e8e8e8" app:verticalspacing="-4dp" app:horizontalspacing="0dp" app:stretchmode="none" app:scrolldirectionportrait="horizontal" app:scrolldirectionlandscape="horizontal" app:gravity="center" android:layout_gravity="center"/> then, make layout fill each cell of gridview with. have create adapter fill each cell of grid respective content.
i assumed each cell of grid have single line of view. no multiple lines in single cell. show start , end of card, can use different background colors starting , ending cells.
in short: have make list of data u have put in grid of adapter.
you can refer tutorial use above library.
Comments
Post a Comment