Skip to content

Commit

Permalink
Update lower display
Browse files Browse the repository at this point in the history
Only show coordinates after projection, and make title bold
  • Loading branch information
darryl-lynch committed Jan 3, 2025
1 parent a0e4c20 commit 9c6d36c
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import com.arcgismaps.geometry.Point
Expand All @@ -52,7 +53,7 @@ fun ProjectGeometryScreen(sampleName: String) {
original.toDisplayFormat(),
projection.toDisplayFormat()
)
} ?: stringResource(R.string.tap_to_begin)
} ?: ""

Scaffold(
topBar = { SampleTopAppBar(title = sampleName) },
Expand All @@ -77,12 +78,17 @@ fun ProjectGeometryScreen(sampleName: String) {
.padding(12.dp)
.fillMaxWidth()
) {
Text(
text =
stringResource(R.string.title_text) + "\n" +
infoText,
minLines = 3
)
Column {
Text(
text = pointProjectionInfo?.let { stringResource(R.string.title_text) }
?: stringResource(R.string.tap_to_begin),
fontWeight = FontWeight.Bold
)
Text(
text = infoText,
minLines = 2
)
}
}

}
Expand Down

0 comments on commit 9c6d36c

Please sign in to comment.