- Add as a library project
- Add
xmlns:marijnvdwerf="http://schemas.android.com/apk/res-auto"
to your layout xml - Insert a
<nl.marijnvdwerf.layouts.FixedAspectRatioFrameLayout />
view - Set the aspect ratio by adding a
marijnvdwerf:aspectRatio="1.77"
attribute - Specify in which direction the element should change size by adding
marijnvdwerf:stretchMode="vertical"
marijnvdwerf/AndroidLayouts
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published