yschimke
10/10/2022, 8:21 AMfadeAway
modifier. It's being replaced by scrollAway temporarily, and this will be coming in Wear Compose 1.1. The design has changed also for Column and LazyList, so it also fades away. Previously it was just scrolling (like Modifier.offset
) https://github.com/google/horologist/pull/669/filesyschimke
10/13/2022, 12:42 PMYingding Wang
10/14/2022, 1:38 PMWatchFaceConfig
class from the WatchFaceKotlin
example using compose-wear, (https://github.com/yingding/wear-os-examples/blob/main/Wear3KtxWatchFaceConfigExam[…]xample/watchfaceconfigexample/editor/WatchFaceConfigActivity.kt), So far everything works fine, except adding the onClick events to setComplication on top of the WatchFace Bitmap generated from EditorSession. In the original example, two Button views are vaguely put to the whole viewports. How can i do this in compose wear in a more accurate way?
It would be nice to have a EditorSession.renderWatchFaceToComposable(...) -> (@Composable()()->Unit)
function to allow me specify the onClick events.
Any thoughts on this matter?andrew
10/15/2022, 7:02 PMlouiscad
10/16/2022, 2:42 PMScalingLazyColumn
is incredibly, mind blowingly, fascinatingly… extremely laggy, even in release builds… 😕
You don't even get 10fps!
How is that possible? I tested on the Pixel Watch and the Samsung Galaxy Watch 4.
Is Google using these in their apps with some tricks, or is Google using only View APIs?
Here's my code:
import androidx.wear.compose.foundation.CurvedLayout
import androidx.wear.compose.material.AutoCenteringParams
import androidx.wear.compose.material.Icon
import androidx.wear.compose.material.ScalingLazyColumn
import androidx.wear.compose.material.Text
import androidx.wear.compose.material.ToggleChip
import androidx.wear.compose.material.ToggleChipDefaults
import androidx.wear.compose.material.curvedText
import androidx.wear.compose.material.rememberScalingLazyListState
@Composable
fun SomeScreenContent() {
ScalingLazyColumn(
Modifier.fillMaxSize(),
state = listSate,
autoCentering = AutoCenteringParams(itemIndex = 0),
) {
items(20) {
ToggleChip(
checked = false,
onCheckedChange = { isChecked -> },
label = {
Text("Some setting")
},
toggleControl = {
Icon(
imageVector = ToggleChipDefaults.switchIcon(checked = false),
contentDescription = "setting disabled"
)
}
)
}
}
}
barat
10/19/2022, 3:13 PMJohn Nichol
10/24/2022, 7:49 PMflorent
10/26/2022, 10:03 AMandrew
10/27/2022, 7:26 PMandrew
10/27/2022, 7:26 PMandrew
10/27/2022, 7:31 PMYingding Wang
10/29/2022, 10:10 PMWear Compose 1.1.0-beta01
and compose 1.3.0
. Is there an example how to define CompactChip and make it clickable?
CompactChip(
modifier = modifier.padding(top = 8.dp),
onClick = onClick,
label = {
Text(
text = stringResource(R.string.click_me),
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
}
)
florent
10/31/2022, 10:13 AMflorent
11/01/2022, 4:09 PMAndy Himberger
11/03/2022, 4:52 PMException e4.b: 20: The connection to Google Play services was lost due to service disconnection.
at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus (ApiExceptionUtil.java)
at com.google.android.gms.common.internal.zap.zaa (zap.java)
at com.google.android.gms.common.internal.zar.onComplete (zar.java)
at com.google.android.gms.common.api.internal.BasePendingResult.zab (BasePendingResult.java)
at com.google.android.gms.common.api.internal.BasePendingResult.setResult (BasePendingResult.java)
at com.google.android.gms.common.api.internal.BasePendingResult.forceFailureUnlessReady (BasePendingResult.java)
at com.google.android.gms.common.api.internal.zav.zaa (zav.java)
at com.google.android.gms.common.api.internal.zav.zaa (zav.java)
at com.google.android.gms.common.api.internal.GoogleApiManager$zaa.zaa (GoogleApiManager.java)
at com.google.android.gms.common.api.internal.GoogleApiManager$zaa.onConnectionSuspended (GoogleApiManager.java)
at com.google.android.gms.common.internal.zag.onConnectionSuspended (zag.java)
at com.google.android.gms.common.internal.BaseGmsClient$zzb.handleMessage (BaseGmsClient.java)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:246)
at android.os.HandlerThread.run (HandlerThread.java:67)
JORGE ALBER
11/04/2022, 4:50 PMIlya K
11/10/2022, 6:31 AMyschimke
11/10/2022, 6:38 AMJohn Nichol
11/12/2022, 10:24 AMOdin
11/13/2022, 9:24 PMJORGE ALBER
11/13/2022, 10:22 PMIlya K
11/14/2022, 8:14 AMyschimke
11/15/2022, 9:32 AMArjun Achatz
11/17/2022, 3:59 PMNat Strangerweather
11/23/2022, 9:03 PMString
. I have tried to follow the DataLayer code in the wear-os-samples, but it is a bit complicated for my level... 🤔louiscad
11/24/2022, 5:47 AMRecyclerView
or WearableRecyclerView
in a @Composable
function, you need to hack around to get rotary input to work.
If any of you need that, let me know, I will share my code in a gist or in an open source library.
BTW, does anyone know how to have something like ScalingLazyColumn
but with RecyclerView
?
Basically, I'm looking for the same effect as in the Settings app and in the App Drawer from the Pixel Watch.Michail Kulaga
11/24/2022, 3:49 PMrotaryWithScroll
, rotaryWithFling
and rotaryWithSnap
.
rotaryWithScroll
- a modifier when only scroll is required
rotaryWithFling
- scrolling with flinging. Supports any scrollableState
rotaryWithSnap
- scrolling with snapping. For now supports only ScalingLazyColumn ( Picker and Pager will be supported as well later )
All modifiers support haptics out of the box, which can be switched off if necessary.Arjun Achatz
11/24/2022, 6:51 PMYingding Wang
11/24/2022, 11:13 PMflorent
11/25/2022, 4:00 PMflorent
11/25/2022, 4:00 PMArjun Achatz
11/25/2022, 6:16 PMyschimke
11/25/2022, 6:21 PMflorent
11/25/2022, 6:29 PMyschimke
11/25/2022, 6:30 PMflorent
11/25/2022, 6:31 PMyschimke
11/25/2022, 6:32 PMflorent
11/25/2022, 6:32 PMyschimke
11/25/2022, 6:32 PMflorent
11/25/2022, 7:04 PMyschimke
11/25/2022, 7:05 PMflorent
11/25/2022, 7:05 PMyschimke
11/27/2022, 10:42 AMflorent
11/27/2022, 11:06 AM