-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support FrameLayout #11
Comments
Hi, @pocmo I am thinking that |
looks like all |
Yes, you are right, |
@pocmo I need help here. How would you suggest I handle a case of I have verified that the gravity is added as |
Here's an idea... Android uses bit masks internally. So
So the combined value is 0x00800033 (Gravity.TOP or Gravity.START`). If we map the parsed gravity values to their actual values in the Gravity class and if we map the available
Does this make sense? We would need to keep a map from gravity to Int and from Int to Alignment. Do you think that could work? |
FYI: Jetpack Compose 1.0.0-alpha04 just got released,
|
Thanks for the heads up. I will check out the new Box then. |
Yes, this could work. I observed that gravity attributes: Also, I observed that when you have a known ViewGroup as the root of the XML to be parsed, the ViewGroup attribute is not parsed while that of the children is parsed. |
I found out why the observed issue in the last paragraph was happening, I did not add |
Since we added basic support for |
View:
https://developer.android.com/reference/android/widget/FrameLayout
Composable:
Maybe we can just translate it to a
Box()
with children?The text was updated successfully, but these errors were encountered: