PlaceAdapter - ShutUpPaulo/TecProg_2016-01 GitHub Wiki
- No arguments
- Constructs a place adapter with a given context and list of places
- Context context: Context of place adapter
- List places: List of given places
- Type: Constructor
- Returns the View in given position
- int position: Position of the View
- View convertView: Old view that will be reused
- ViewGroup parent: Parent that this view will be attached to
- Type: View
- Description: Updated view
Name | Type | Description | Default Value |
---|---|---|---|
place | Place | Place object at the given position | * * * |
viewHolder | ViewHolder | ViewHolder to show the place in a item of the list | * * * |
placeNameText | String | Stores the name of the place summarized if its size is greater than the maximum | * * * |
- If the place name is greater, reduces the place name to the maximum size and add ellipsis
- String placeName: Name of the place
- Type: String
- Description: Name of the place reduced
Name | Type | Description | Default Value |
---|---|---|---|
placeNameText | String | Stores the final place name, reduced if needed | * * * |