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

chore: add targetCell values #83

Merged
merged 5 commits into from
May 13, 2024

Conversation

justinkx
Copy link
Contributor

@justinkx justinkx commented May 9, 2024

https://developer.android.com/develop/ui/views/appwidgets/layouts#anatomy_determining_size

  • targetCellWidth and targetCellHeight are more reliable and easy to configure compared to minWidth or minHeight. According to docs , If defined, these attributes are used instead of minWidth or minHeight.

@sAleksovski
Copy link
Owner

sAleksovski commented May 9, 2024

Please update the CHANGELOG.md file with

## [Unreleased] (already there)

### Added

- `targetCellWidth` and `targetCellHeight` options in config plugin

and the docs wherever android:minWidth="320dp" is used, and add targetCellWidth = 5 and targetCellHeight = 2 values.

Also, did you try this on Android 11 or older?

@justinkx
Copy link
Contributor Author

Also, did you try this on Android 11 or older?

In Android 11 and Older , cell width is not supported hence it will pick only minWidth and minHeight values.

app.plugin.ts Outdated
}
${
widget.targetCellHeight
? ` android:targetCellWidth="${widget.targetCellHeight}"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android:targetCellHeight instead of android:targetCellWidth

@sAleksovski sAleksovski merged commit 923b998 into sAleksovski:master May 13, 2024
@sAleksovski
Copy link
Owner

Thanks!

I just released 0.14.0 containing this feature.

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.

2 participants