diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml new file mode 100644 index 0000000000..2a9c5e01a6 --- /dev/null +++ b/.idea/assetWizardSettings.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/ktlint.xml b/.idea/inspectionProfiles/ktlint.xml index 890d3900b1..2672eb10e8 100644 --- a/.idea/inspectionProfiles/ktlint.xml +++ b/.idea/inspectionProfiles/ktlint.xml @@ -4,30 +4,39 @@ diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000000..f8051a6f97 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/datalayer/sample/phone/src/main/java/com/google/android/horologist/datalayer/sample/screens/counter/CounterScreen.kt b/datalayer/sample/phone/src/main/java/com/google/android/horologist/datalayer/sample/screens/counter/CounterScreen.kt index 3921d98520..6017d40989 100644 --- a/datalayer/sample/phone/src/main/java/com/google/android/horologist/datalayer/sample/screens/counter/CounterScreen.kt +++ b/datalayer/sample/phone/src/main/java/com/google/android/horologist/datalayer/sample/screens/counter/CounterScreen.kt @@ -16,8 +16,10 @@ package com.google.android.horologist.datalayer.sample.screens.counter +import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Add @@ -73,9 +75,18 @@ fun CounterScreen( } is CounterScreenUiState.Loaded -> { - Text(text = "Counter: " + state.counter) - Button(onClick = onPlusClick) { - Icon(imageVector = Icons.Default.Add, contentDescription = "Plus 1") + Column( + modifier = Modifier + .fillMaxWidth() + .padding(16.dp), + ) { + Text(text = stringResource(R.string.app_helper_counter_increase_explanation)) + Row(verticalAlignment = Alignment.CenterVertically) { + Text(text = "Counter: " + state.counter) + Button(onClick = onPlusClick) { + Icon(imageVector = Icons.Default.Add, contentDescription = "Plus 1") + } + } } } diff --git a/datalayer/sample/phone/src/main/res/values/strings.xml b/datalayer/sample/phone/src/main/res/values/strings.xml index f053df92f9..e854ba840c 100644 --- a/datalayer/sample/phone/src/main/res/values/strings.xml +++ b/datalayer/sample/phone/src/main/res/values/strings.xml @@ -71,6 +71,7 @@ Counter: %1$s Increase counter + Open the datalayer sample on your watch to observe how the counter number is incremented This is a sample activity to demonstrate it being launched remotely from the watch.