Skip to content
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 Android API < 28 #43

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adamglin0
Copy link
Owner

@adamglin0 adamglin0 commented Dec 7, 2024

  1. The initial code is copied from composeShadowPlus. (So I should add a license in the code file.)

  2. If android sdk < 28, the content should be wrapped with AndroidView and the LayerType should be set to LAYER_TYPE_SOFTWARE.

  3. compose-shadow should provide a wrapper component to wrap content like ComposeShadowPlus.

  4. It seems that the shadow drawn by the composeShadowPlus solution is different in android 27 and android 28.

@adamglin0 adamglin0 linked an issue Dec 7, 2024 that may be closed by this pull request
@adamglin0
Copy link
Owner Author

Just a trial, the effect image on Android 25.

image

@adamglin0
Copy link
Owner Author

API 34
image

@adamglin0
Copy link
Owner Author

No solution to support innerShadow in android sdk < 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Android API < 28
1 participant