https://kotlinlang.org logo
#compose
Title
# compose
k

Kevin Hester

02/14/2020, 2:53 PM
So in my app which I'm Composemotizing, I've been using the Google sign View (which looks like a button but from looking at the .class file is actually a FrameLayout. the xml style instantiation looks like:
Copy code
<com.google.android.gms.common.SignInButton
 android:id="@+id/sign_in_button"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content" />
Is there any way in Compose for me to create View instances as a child of a Compose frame? From looking at the docs, I see https://developer.android.com/reference/kotlin/androidx/compose/adapters/package-summary which sounds interesting, but I'm not sure what the intended usage is?
a

Adam Powell

02/14/2020, 3:23 PM
A few, and I think all of them have a few bugs at the moment 😅
k

Kevin Hester

02/14/2020, 4:58 PM
no rush - for the time being I'm just using a regular not fancy Button ;-)
2 Views