Hi there, jus wanted to say I have finished my fir...
# compose-wear
n
Hi there, jus wanted to say I have finished my first wear OS app, which is an RSS reader. I wanted to thank you all very much for your generous help. The app is available for open testing and if you would like a promo code, please direct message me here on Slack. Pictures in thread. https://play.google.com/store/apps/details?id=com.strangerweather.news
πŸ‘ 4
πŸ‘πŸΌ 2
πŸ“° 1
πŸ‘πŸ½ 1
πŸŽ‰ 2
PXL_20230323_161252303.jpg,PXL_20230323_161347387.jpg,PXL_20230323_161429260.jpg
j
Congrats on getting to the end of your first App - Obviously we would be interested in any feedback on your experience. I hope your app is successful πŸ™‚
n
Thank you very much for your good wishes! Is there any specific feedback that you are looking for or just more generally? I'll start thinking. πŸ˜‰
a
Congrats Nat!
n
@John Nichol In terms of feedback, what I found the hardest was the fact that much of the documentation is not made for Jetpack Compose. For instance, I struggled quite a bit with the tile. I spent ages trying to make this work: https://developer.android.com/training/wearables/tiles/get_started#create_a_tile only to find out that it's actually really easy with Compose... In the same way, while the samples are really very helpful, when it came to the DataLayer one, I was not sure how to implement it with Compose. Because I am used to only having one activity, I wasn't sure whether I was meant to create another activity or to use the code in my MainActivity. One disclaimer is that I am not a professional; this is a hobby for me and I don't excel at it! πŸ˜‰
a
Out of interest, what did you end up with for your Compose tile? πŸ‘€
n
Do you mean what the code looks like?
a
Yes/how far you got with it.
Happy to DM on this particular topic too; I can share feedback with the tiles team.
n
In the end it was as simple as this:
Copy code
class MainTileService : GlanceTileService() {

    @Composable
    override fun Content() {
        val imageSize = LocalSize.current.times(1f)
        Column(
            modifier = GlanceModifier.fillMaxSize().background(Color(0xff17244E)).clickable(
                    actionStartActivity<MainActivity>()
                ),
            horizontalAlignment = Alignment.CenterHorizontally,
            verticalAlignment = Alignment.CenterVertically
        ) {
            Image(
                provider = ImageProvider(R.drawable.logo),
                modifier = GlanceModifier.size(imageSize.width, imageSize.height),
                contentScale = ContentScale.FillBounds,
                contentDescription = "Logo"
            )
        }
    }
}
a
ahh fair enough πŸ˜…
n
I love Compose lol
a
Glance is currently in alpha, and we recommend Tiles Material for building tiles at this time. Fair enough though, the API isn't as friendly as Compose
n
Yeah, this was a bit daunting lol:
Copy code
).build()
                    ).build()
                ).build()
            ).build()
        ).build())