Responsive Design with HarmonyOS ArkUI Media Queries

Media queries enable dynamic UI adjustments based on device attributes like screen dimensions, resolution, orientation, and color depth. They form the foundation of responsive application design, ensuring consistent and optimal user experiences across diverse hardware. Typical use cases include adaptive layouts, typography scaling, conditional ...

Posted on Tue, 04 Aug 2026 16:41:01 +0000 by unbreakable9

Handling Screen Orientation Changes in Android Fragments

When supporting both orientations, leverage ViewModel combined with DataBinding two-way binding to manage UI component data and states. Store text content, click handlers, visibility flags, and other UI properties within the ViewModel. This approach eliminates the need to serialize large amounts of data into Bundles during configuration changes ...

Posted on Sun, 05 Jul 2026 16:56:34 +0000 by nikbone