Tagged articles
Fragment
14 articles · Page 1 of 1
This article explains Lance's row_offsets_to_row_addresses process, showing how logical row numbers are mapped to fragment‑specific RowAddress objects, handling deletion vectors, tombstone rows, and version‑dependent mappings with concrete code examples.
DatasetDeletionVectorFragment
0 likes · 4 min read

The black‑flash in Taobao’s shopping‑cart tab occurs because SurfaceView’s independent surface is destroyed during fragment removal or activity switches, and four remedies are offered: keep the fragment alive with show/hide, capture and display a screenshot, toggle between ImageView and SurfaceView via Weex APIs, or convert SurfaceView to TextureView temporarily, each with performance, memory, and latency trade‑offs.
AndroidFragmentSurfaceView
0 likes · 10 min read

The article examines why Android fragment transition animations lag compared to activity animations and proposes three remedies—delaying heavy UI work, feeding data frame‑by‑frame via Choreographer callbacks, and using an asynchronous SurfaceView snapshot—to achieve smoother, deterministic UI performance on low‑end devices.
AndroidFragmentSurfaceView
0 likes · 13 min read

This article introduces Android Fragments—explaining their purpose, core functions, static and dynamic integration methods, detailed lifecycle stages, various communication patterns, and a typical security flaw involving arbitrary URL handling—providing developers and security researchers with practical insights and mitigation ideas.
AndroidFragmentLifecycle
0 likes · 10 min read

This article explains the OffscreenPageLimit attribute of ViewPager2, how it controls off‑screen page loading, compares its default values with ViewPager, shows code implementations, analyzes performance trade‑offs, and provides practical recommendations for choosing an appropriate limit.
AndroidFragmentOffscreenPageLimit
0 likes · 16 min read

This article discusses several frequent Android development challenges—including hiding the soft keyboard after activity finish, proper use of the merge tag, LinearLayout weight handling, and numerous Fragment lifecycle pitfalls—providing practical solutions, code snippets, and best‑practice recommendations to improve app stability and UI behavior.
AndroidFragmentLayout
0 likes · 13 min read

Android routing management separates native navigation—using Activity launch modes, the ActivityManagerService task stack, intents, and the Navigation component for fragments—from hybrid navigation, where Activities host WebView, Weex/React‑Native, or Flutter pages and communicate via intents, bridges, or platform channels to achieve flexible page routing.
ActivityAndroidFragment
0 likes · 13 min read

This article presents a complete solution for monitoring Fragment visibility in Android, covering simple replace operations, hide/show handling, ViewPager nesting, AndroidX adapter behaviors, and a reusable BaseVisibilityFragment implementation with Kotlin code examples.
AndroidFragmentKotlin
0 likes · 12 min read

This article provides an in‑depth tutorial on Android’s Navigation component, covering core concepts, XML graph setup, fragment transactions, parameter passing via Bundle and Safe Args, deep‑link integration, animation configuration, stack management, and a detailed source‑code analysis for developers.
FragmentNavigation ComponentSafe Args
0 likes · 27 min read

Scene is an open‑source Android framework from ByteDance’s Xigua video team that provides lightweight, view‑based page navigation and composition for Single‑Activity applications, addressing Activity/Fragment limitations with flexible stack management, shared‑element animations, and ViewModel‑based communication.
AndroidFragmentScene
0 likes · 14 min read

This article explains why traditional Android photo capture using Intents and onActivityResult is cumbersome, especially in list adapters, and introduces a Fragment‑based PhotoTaker utility that streamlines camera and gallery access, handles dynamic permissions, and works across Android versions.
AndroidCameraDynamic Permission
0 likes · 12 min read

This article provides a comprehensive guide to Android's Navigation component, covering its purpose, setup steps, XML graph configuration, fragment navigation, data passing methods, deep link handling, nested navigation, and an analysis of the underlying source code with practical Kotlin examples.
AndroidDeeplinkFragment
0 likes · 11 min read

This comprehensive guide explores Android Fragments in depth, covering their definition, modular advantages, core classes, dependency on support libraries, basic and dynamic usage, lifecycle methods, transaction handling, back‑stack mechanics, communication patterns, DialogFragment creation, ViewPager integration, lazy loading techniques, and practical code examples.
AndroidBackStackFragment
0 likes · 30 min read

This article details a multi‑stage performance overhaul of a large‑scale chat application's SQLite database, covering trace‑based I/O analysis, view caching with Fragments, table‑splitting experiments, index size reduction, and the development of a PageTracer tool to quantify page‑level gains.
AndroidFragmentPageTracer
0 likes · 21 min read
