Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosfreeCodeCamp.org: TimescaleDB Course – PostgreSQL for Time-Series Data(23.09.2026 um 12:30 Uhr)
Windows Tipps & SecurityAndroid 17: Rollout auf Samsung-Galaxy-Smartphones verzögert sich(23.09.2026 um 11:42 Uhr)
Unix & Linux ServerUSN-8733-2: Gzip vulnerabilities(22.09.2026 um 18:04 Uhr)
Sichere ProgrammierungHow to Build Custom PowerPoint Add-Ins for Enterprise Teams(23.09.2026 um 11:25 Uhr)
Sichere ProgrammierungSearch Google Jobs in Real-Time with Go and SerpApi 🚀(23.09.2026 um 12:13 Uhr)
Sichere ProgrammierungA Psychological State is a Coefficient Vector(23.09.2026 um 12:16 Uhr)
YouTube Security VideosfreeCodeCamp.org: TimescaleDB Course – PostgreSQL for Time-Series Data(23.09.2026 um 12:30 Uhr)
Windows Tipps & SecurityAndroid 17: Rollout auf Samsung-Galaxy-Smartphones verzögert sich(23.09.2026 um 11:42 Uhr)
Unix & Linux ServerUSN-8733-2: Gzip vulnerabilities(22.09.2026 um 18:04 Uhr)
Sichere ProgrammierungHow to Build Custom PowerPoint Add-Ins for Enterprise Teams(23.09.2026 um 11:25 Uhr)
Sichere ProgrammierungSearch Google Jobs in Real-Time with Go and SerpApi 🚀(23.09.2026 um 12:13 Uhr)
Sichere ProgrammierungA Psychological State is a Coefficient Vector(23.09.2026 um 12:16 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Image Cropping, Disabling Back Gestures, App Icon Size Specifications, Database Errors

[Daily HarmonyOS Next Knowledge] Image Cropping, Disabling Back Gestures, App Icon Size Specifications, Database Errors, Text Component Omission Display for Excess Length 1. What are the units for the interface area settings (x,…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




[Daily HarmonyOS Next Knowledge] Image Cropping, Disabling Back Gestures, App Icon Size Specifications, Database Errors, Text Component Omission Display for Excess Length






1. What are the units for the interface area settings (x, y, size) of HarmonyOS image cropping?



The size is specified in pixels (px), and the units for x and y are also pixels (px).






2. How to disable the swipe-back gesture in HarmonyOS?



An overlay layer is added using context.getOverlayManager().addComponentContent, but this layer cannot disable the swipe-back gesture.



Reference code (index page):




import { AppRouter } from './AppRouter' 
import { AppDialog } from './AppDialog'
import { PrivacyDialogViewBuilder } from './PrivacyDialogView';
import { DefaultDialog } from './DefaultDialog';









@Entry
@Component
struct Index {
@Builder
PageMap(name: string) {
DefaultDialog()
}

build() {
Navigation(AppRouter.getInstance().getPathStack()) {
Stack({ alignContent: Alignment.Center }) {
Column() {
Button('Custom Popup Based on Navigation', { stateEffect: true, type: ButtonType.Capsule })
.onClick(() => {
AppDialog.build(wrapBuilder(PrivacyDialogViewBuilder))
.onBackPressed((): boolean => true)
.open();
})
}
}.height("100%").width("100%")
}.hideTitleBar(true).navDestination(this.PageMap)
}
}









3. What are the specifications for HarmonyOS app icon sizes, and what sizes are required for different devices? How does an app adapt to multiple device requirements?



Reference document: https://developer.huawei.com/consumer/cn/doc/design-guides/ux-guidelines-general-0000001760708152#section1353515481417



Visual Style



Color Contrast





















































Standard Number 2.1.4.1 Color Contrast
Standard Description The colors used in the app must meet the minimum contrast requirements:

- The contrast ratio between icons or title text and the background is greater than 3:1.

- The contrast ratio between body text and the background is greater than 4.5:1.
Test Method Obtain background color information and calculate the contrast between each control and the background.
Judgment Criteria - Contrast ratio between icons or title text and background > 3:1.

- Contrast ratio between body text and background > 4.5:1.
Standard Level Recommended
Applicable Device Types Mobile phones, foldables, tablets, PC/2in1
Special Considerations None
System Capabilities 1. For setting component background color, refer to Background Settings - backgroundColor

2. For setting font color, refer to Text Common - fontColor


Font Size





















































Standard Number 2.1.4.2 Font Size
Standard Description The text size in the app must meet the minimum font size requirement:

The text font size is not smaller than 12 fp (recommended), and the minimum must not be smaller than 8 fp (mandatory).
Test Method Observe and obtain the text size within the app.
Judgment Criteria Text font size ≥ 8 fp.
Standard Level Mandatory
Applicable Device Types Mobile phones, foldables, tablets, PC/2in1
Special Considerations None
System Capabilities Refer to Text Common - fontSize





4. Why does inserting data into a HarmonyOS relationalStore database table that hasn't been created throw an error 14800021?



Errors occur during SQL execution, such as:




  1. Inserting or updating a non-created table.

  2. Inserting or updating a non-existent column.

  3. Calling undefined functions, etc.






5. When a HarmonyOS Text component is set to omit the tail for excess length, it shows abnormal omission in specific cases (omitting early when space remains at the tail).



For omission in mixed text, set the wordBreak property to WordBreak.BREAK_ALL to resolve early omission.


Reference document: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-text-V5#textalign



textAlign(value: TextAlign)



Sets the horizontal alignment of the text paragraph.



The text paragraph width fills the Text component width.



The vertical position of the text paragraph can be controlled via the align property. In this component, the align property cannot control the horizontal position (e.g., Alignment.TopStart, Alignment.Top, and Alignment.TopEnd all position content at the top; Alignment.Start, Alignment.Center, and Alignment.End center content vertically; Alignment.BottomStart, Alignment.Bottom, and Alignment.BottomEnd position content at the bottom). The horizontal position is controlled in conjunction with the textAlign property.



When textAlign is set to TextAlign.JUSTIFY, the wordBreak property must be set based on the text content, and the last line of text does not participate in full justification, displaying a horizontal start alignment effect.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Image Cropping, Disabling Back Gestures, App Icon Size Specifications, Database Errors

Thematisch verwandte Begriffe: Image, Cropping, Disabling, Back · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-96258 | A vulnerability has been found in onSite internet GmbH Auktion NG Auktio…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick