forked from Scottish-Tech-Army/Soundscape-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small fix-ups to make callouts more like iOS
- Remove distance from intersection description - Add POI category earcons
- Loading branch information
Showing
8 changed files
with
154 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ottishtecharmy/soundscape/screens/markers_routes/screens/markersscreen/MarkersEditList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.scottishtecharmy.soundscape.screens.markers_routes.screens.markersscreen | ||
|
||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.heightIn | ||
import androidx.compose.foundation.lazy.LazyColumn | ||
import androidx.compose.foundation.lazy.items | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.unit.dp | ||
import androidx.navigation.NavController | ||
import org.scottishtecharmy.soundscape.components.LocationItem | ||
import org.scottishtecharmy.soundscape.screens.home.locationDetails.generateLocationDetailsRoute | ||
import org.scottishtecharmy.soundscape.screens.markers_routes.navigation.ScreensForMarkersAndRoutes | ||
|
||
@Composable | ||
fun MarkersEditList( | ||
uiState: MarkersUiEditState, | ||
navController: NavController, | ||
) { | ||
LazyColumn( | ||
modifier = Modifier.fillMaxWidth().heightIn(max = 470.dp), | ||
verticalArrangement = Arrangement.spacedBy(2.dp), | ||
) { | ||
items(uiState.route) { locationDescription -> | ||
LocationItem( | ||
item = locationDescription, | ||
onClick = { | ||
|
||
}, | ||
) | ||
} | ||
items(uiState.markers) { locationDescription -> | ||
LocationItem( | ||
item = locationDescription, | ||
onClick = { | ||
}, | ||
) | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ishtecharmy/soundscape/screens/markers_routes/screens/markersscreen/MarkersUiEditState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.scottishtecharmy.soundscape.screens.markers_routes.screens.markersscreen | ||
|
||
import org.scottishtecharmy.soundscape.screens.home.data.LocationDescription | ||
|
||
data class MarkersUiEditState( | ||
val markers: List<LocationDescription> = emptyList(), | ||
val route: List<LocationDescription> = emptyList(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters