Package in2000. pedalio. ui. homescreen
Types
Link copied to clipboard
class FavoriteRecyclerAdapter( searchWindow: SearchWindow, favorites: List<FavoriteResult>, chosenResult: MutableLiveData<SearchResult>) : RecyclerView.Adapter<FavoriteRecyclerAdapter.Favorite>
Content copied to clipboard
Recycler for the favorite list inside of the search window
Link copied to clipboard
data class FavoriteResult( val score: Double, val address: Address?, val position: LatLng, val distance: Double, val info: String, val poi: Poi?, val iconSrc: Int = R.drawable.ic_home)
Content copied to clipboard
Data class to store a search result.
Link copied to clipboard
Fragment that is shown when there is no internet connection on startup.
Link copied to clipboard
class ResultAdapter( searchWindow: SearchWindow, searchList: List<SearchResult>, chosenResult: MutableLiveData<SearchResult>) : RecyclerView.Adapter<ResultAdapter.ViewHolder>
Content copied to clipboard
Recycler for the search result list inside of the search window
Link copied to clipboard
The search window fragment. This fragment is responsible for displaying the search window on click of the search button from the map.
Functions
Link copied to clipboard
Convert FavoriteResult to a SearchResult.