Implementing a Custom Dynamic Loading Overlay in UniApp
Step 1: Building the Overlay Component
Create a component named DynamicOverlay.vue. This component accepts a media source property and manages its own visibility, including a automatic shutdown mechanism if the process takess too long.
<template>
<view v-show="isVisible" class="overlay-container">
<image ...
Posted on Tue, 22 Sep 2026 16:54:41 +0000 by crouchl
HarmonyOS Development with ArkUI Components - Media Query Implementation
1. Import Required Modules
import mediaquery from '@ohos.mediaquery';
2. Setting Up Media Query Conditions
Use the matchMediaSync interface to define media query conditions and store the returned listener handle. For example, to monitor landscape orientation changes:
const orientationListener = mediaquery.matchMediaSync('(orientation: landscap ...
Posted on Thu, 17 Sep 2026 16:12:09 +0000 by Asperon
Android Date and Time UI Components
TextClock
The TextClock widget, introduced in Android 4.2 (API level 17), replaces the deprecated DigitalClock. It displays the current date and time as a formatted string and automatically adapts to the system's time format preference—either 12-hour or 24-hour.
To determine the active time format, use is24HourModeEnabled(). The component prior ...
Posted on Sat, 08 Aug 2026 16:31:50 +0000 by frih
Implementing Navigation Drawers with NavigationView
Integration Steps
Dependency Inclusion
Include the Material Design library in your app-level build.gradle:
implementation 'com.android.support:design:23.1.1'
Layout Configuration
Configure DrawerLayout with NavigationView in your XML layout:
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/a ...
Posted on Wed, 05 Aug 2026 17:01:25 +0000 by Hybride
Implementing Swipeable Tabs in WeChat Mini Programs
Use a scroll-view component with horizontal scrolling to create the tab navigation bar. This enables the tabs to be swipealbe when they exceed the viewport width.
Maintain synchronization between the active tab header and its corresponding content panel by binding both to a shared state variable. This variable controls the active index for the ...
Posted on Sun, 02 Aug 2026 16:48:52 +0000 by shar
Building Custom iOS UI Components with XIB and Programmatic Layout
A custom UI component begins with an Interface Builder file. Start by creating a new file and selecting the User Interface category, then choose View. This generates a .xib file containing an empty view.
Design your reusable interface within this .xib file. Ensure you connect the File's Owner's Class in the "Custom Class" section to t ...
Posted on Tue, 21 Jul 2026 16:57:35 +0000 by NYSiRacer
Implementing and Customizing ViewPager in Android
ViewPager enables horizontal swiping between multiple screens in Android applications.
Basic ViewPager Implementation
Layout File
<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Adapter Implementation
Cre ...
Posted on Thu, 25 Jun 2026 17:14:48 +0000 by Christopher
Bootstrap UI Components: Icons, Navigation, and Interactive Elements
Glyphicons Icon FontsGlyphicons provide scalable vector icons that can be customized using CSS properties like size, color, and shadow effects.<div class="container">
<span class="glyphicon glyphicon-envelope"></span>
<a href="#" class="btn btn-default">
<span class="glyphicon glyphicon-plus">& ...
Posted on Tue, 23 Jun 2026 17:10:12 +0000 by BigToach
Implementing Tab Navigation in HarmonyOS Applications
Bottom Navigation Bar
@Entry
@Component
struct MainScreen {
build() {
Column() {
Tabs({ barPosition: BarPosition.End }) {
TabContent() {
Text('Home Screen').fontSize(30)
}.tabBar('Home')
TabContent() {
Text('Discovery Screen').fontSize(30)
}.tabBar('Discovery')
TabContent ...
Posted on Tue, 23 Jun 2026 17:09:58 +0000 by rich1983
Styling and Implementing Buttons in HarmonyOS ArkUI
Creating a Circular Button
A circular button can be created by setting the ButtonType to Circle.
Button('Circle', { type: ButtonType.Normal, stateEffect: false })
.backgroundColor(0x317aff)
.width(90)
.height(90)
Note: The borderRadius property cannot be used to override the shape of a Circle type button.
Customizing Button Appearance
Va ...
Posted on Sat, 20 Jun 2026 16:52:25 +0000 by xsaero00