Tagged articles
3 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Aug 28, 2024 · Mobile Development

AutoHeightViewPager: Dynamically Adjusting ViewPager Height in Android

The article introduces AutoHeightViewPager, a custom ViewPager subclass that measures the current page’s view height and overrides onMeasure to resize itself, interpolating between pages during scroll via an AutoHeightPager‑compatible adapter, thereby eliminating blank space or clipping and providing smooth height transitions for variable‑sized content.

AndroidCustom ViewKotlin
0 likes · 9 min read
AutoHeightViewPager: Dynamically Adjusting ViewPager Height in Android
HelloTech
HelloTech
Nov 8, 2022 · Frontend Development

Mastering Virtual Lists in Vue: From Fixed Height to Dynamic Items

This article explains why virtual lists are needed for long scrollable data, defines the concept, walks through a step‑by‑step implementation for fixed‑height items, extends the solution to handle variable heights, and shares practical tips and code snippets for Vue developers.

Vuedynamic heightfrontend performance
0 likes · 11 min read
Mastering Virtual Lists in Vue: From Fixed Height to Dynamic Items