Alex Vanyo Profile
Alex Vanyo

@alex_vanyo

Followers
1K
Following
895
Media
9
Statuses
244

Android Developer Relations Engineer @ Google, opinions are my own. When not working with insets, I also like to write code testing code-writing code.

Joined March 2019
Don't wanna be here? Send us removal request.
@alex_vanyo
Alex Vanyo
9 months
The complete examples are all available as gists as well for reference:.
0
1
2
@alex_vanyo
Alex Vanyo
9 months
If existing layouts like FlowRow, ListDetailPaneScaffold, and SupportingPaneScaffold don't meet your needs to achieve a specific design, don't be afraid to build custom ones! Checkout the video to see a walkthrough of a few examples involving intrinsics and placement tricks.
@AndroidDev
Android Developers
9 months
When creating custom adaptive layouts, ensure your composition depends on: window-level sizing information OR calls the same composable when recomposing for different layouts. Learn why with examples of how to build custom adaptive layouts in Compose →
1
3
9
@alex_vanyo
Alex Vanyo
1 year
RT @arriolachris: We extended Jetcaster to support additional Android form factors, and ofc, all using Compose :) Check out the article to….
0
3
0
@alex_vanyo
Alex Vanyo
1 year
And the last was adding a "more" button for text, but only if the text is long enough to need it. If the text isn't long enough, we can skip placing the button, otherwise we can use additional text measuring to truncate the text the appropriate amount.
0
1
1
@alex_vanyo
Alex Vanyo
1 year
The second is laying out a badge at the end of the last line of text, if there's enough space. If there isn't, it's placed in the following space. By using TextLayoutResult, we can precisely place the badge at the end of the text.
2
0
1
@alex_vanyo
Alex Vanyo
1 year
The first places buttons either horizontally or vertically based on the available local space, with an added requirement of having both buttons take at most half of the width if laid out horizontally. This can be done with intrinsics!.
1
0
2
@alex_vanyo
Alex Vanyo
1 year
Thank you for everyone attending my Droidcon SF talk yesterday! I live coded through 3 custom layouts to achieve adaptive behavior, and they're now available in gist form:.
2
5
35
@alex_vanyo
Alex Vanyo
1 year
RT @AndroidDev: Want to build adaptive Android apps and future-proof your app? 🤩 Tune in to #GoogleIO on May 14 for our Android sessions! →….
0
14
0
@alex_vanyo
Alex Vanyo
1 year
These new shared element APIs are pretty sweet!. #JetpackCompose #AndroidDev
1
5
46
@alex_vanyo
Alex Vanyo
1 year
RT @doris4lt: 🔥💯🥰🥳. Super thrilled to see the new shared element API enable apps to add polish and delight. ♥️ Please feel free to tag me w….
0
10
0
@alex_vanyo
Alex Vanyo
1 year
Circles and stars are great and all, but sometimes designs call for a shape that can create an aperioidic tiling. With this new change to androidx graphics-shapes, you can create a shape from the hat-turtle continuum to get the einstein tile you need!.
1
4
16
@alex_vanyo
Alex Vanyo
1 year
Users _will_ resize your apps - and often. There are so many ways to do so: rotating, multi-window mode, folding and unfolding, free-form windows, and more, so it's vital to make sure your app works with all of those!.
@ppvi
Jose Alcérreca
1 year
🥳 We have just published more official guidance on testing!. Whether you optimize your app for different screens or not, you should verify that it works correctly on any device with automated tests. And it's not just about adaptive layouts!.
0
0
10
@alex_vanyo
Alex Vanyo
1 year
RT @riggaroo: Compose 1.7.0-alpha03 includes new options for Flow layouts - ContextualFlowRow & ContextualFlowColumn. Allowing you to speci….
0
19
0
@alex_vanyo
Alex Vanyo
1 year
RT @ppvi: Github's new runners are so much faster! And you can enable KVM on ubuntu which makes them much cheaper for AndroidDevs running e….
0
8
0
@alex_vanyo
Alex Vanyo
1 year
Excited to be there and create something live!. As a sneak peak, AnchoredDraggable will be the star of the show #JetpackCompose.
@codewiththeita
Code with the Italians
1 year
🌟 Get ready to level up your Android skills! We're honored to have @alex_vanyo with us on Jan 31st for a live development session. Tune in to learn about implementing an expanding panel in Android. #DeveloperCommunity #LiveStream
Tweet media one
0
2
8
@alex_vanyo
Alex Vanyo
2 years
By making any changes visible in PRs, you can avoid regressing availability by required new features, which can lead to a painful situation where users on some devices are stuck on a version of the app if the new version is no longer compatible.
0
0
0
@alex_vanyo
Alex Vanyo
2 years
You can commit the output to version control as a “golden badging” file, and then verify that output in CI. We have an example doing just that in Now in Android:
1
0
0
@alex_vanyo
Alex Vanyo
2 years
Running "aapt2 dump badging" will output what features your app is currently requiring, and therefore what devices you might be excluding. This output also contains other useful info about your app, like declared permissions. You can also turn that into an automated check in CI!.
1
0
2
@alex_vanyo
Alex Vanyo
2 years
Your app may not be available to download *at all* on some devices due to feature requirements. Those can be both explicit and implicit, and since any library update or new dependency can impact them, it might not be obvious what features your app ultimately requires.
@AndroidDev
Android Developers
2 years
🔓 Is your app compatible with every device?. Check for explicit and implicit feature requirements, make them optional, and automate checks to prevent regressions in availability! 👏 Ensure that your app can be downloaded on all devices and by all users →
Tweet media one
2
5
17