List
Convert the List design to iOS/Android code.
Last updated
Convert the List design to iOS/Android code.
Last updated
If you need to display scrolling elements dynamically, you should check if they are lists or grids. Lists are vertical, and grids can be vertical or horizontal. In lists, only 1 cell can be in a column but for Grids, it can be more than 1 cell in a column. Here is an example of both of them:
This page is created for lists.
If you need to display scrolling elements dynamically, you should check if they are lists or grids. You can find how to understand the difference here. If you have decided that you want to create lists, this is the right place to read.
An example of a list is below. In the image, the cell prototype repeats itself with different data inside.
Lists are called different names in iOS and Android. They are explained below with the code and details.
Lists are called inTableView
Swift language. With TableView
, you can view a group that aligns all children in a single direction. InTableView
, no matter how wide they are, the vertical list has only one child per row, and your list will only be the one-row height(Height of the tallest child + padding).
CellPrototype
wraps a layout and will often be the container used in a layout for each item within a TableView
. Let's check the generated code.
TableView is added to the page's View Controller file.
The Cell is added as a separate file.