Sergey Y.
08/27/2020, 10:11 PMandroid.view.View
. It uses only android.graphics.Canvas
to draw its own widgets. Which gives the ability to use the latest additions to the Compose Views on any android version. And it's basically true and fantastic to be free of some bugs on some android version in the legacy UI system. But... The only thing left unchanged, it is still blocking us to create rich UI experiences, the saturated elevation. It has Android API 28+ limitation 😞
Designers love to make rich UIs with a lot of fancy colorful shadows under the widgets. Ambient light, glow, neon, pulse... I have a hope Compose will provide the ability to implement its own Elevation provider as Modifier(or something else).
Thank you.Davide Giuseppe Farella
08/27/2020, 10:18 PMromainguy
08/27/2020, 10:21 PMSergey Y.
08/27/2020, 10:22 PMromainguy
08/27/2020, 10:23 PMDaniele B
08/27/2020, 10:24 PMromainguy
08/27/2020, 10:24 PMAdam Powell
08/27/2020, 10:27 PMAbstractComposeView
for how to bridge Compose UIs so that they can be consumed as Views by other app code.
3. Since compose doesn't clip to parents by default this is also easier to do as a custom drawing modifier that draws behind an element and beyond its layout bounds. It won't necessarily look 100% like the platform shadows, but you can have more control over it.Sergey Y.
08/27/2020, 10:28 PMMark Murphy
08/27/2020, 10:35 PMRemoteViews
cannot really use Compose, insofar as Compose isn't working with views (by and large).
How would an Applier
address any of that?
I can see a slice host using Compose for rendering slices. I can see rendering Compose to a Bitmap
as a kinda-sorta way of using Compose with RemoteViews
. And I can see SurfaceControlViewHost
as being a potential long-term app widget/notification replacement option (and Compose should work with that). But I don't see the role of Applier
for any of that either.
I feel like I'm missing something, possibly sleep. 💤Sergey Y.
08/27/2020, 10:42 PMAdam Powell
08/27/2020, 11:05 PMSergey Y.
08/27/2020, 11:07 PMMark Murphy
08/27/2020, 11:13 PMAdam Powell
08/27/2020, 11:14 PMRicardo C.
08/27/2020, 11:15 PMromainguy
08/27/2020, 11:38 PMgildor
08/28/2020, 4:02 AM