-
公开(公告)号:US20230281025A1
公开(公告)日:2023-09-07
申请号:US18191378
申请日:2023-03-28
Applicant: Huawei Technologies Co., Ltd.
Inventor: Wei Zhong , Yang Li , Zhang Gao , Longjiao Xin , Qichao Yang , Bo Tang , Tong Jiao , Xiaoxiao Chen , Jun Zhu , Letian Liu , Duoxian Li
Abstract: An application interface layout method includes that a developer sets a layout container having an adaptive layout capability in a layout file of an application, where the adaptive layout capability includes at least one of an extension capability, a proportion capability, an equalization capability, a wrapping capability, a hiding capability, a stretching capability, or a scaling capability. In this way, when running the application, an electronic device arranges, based on a screen parameter of the electronic device and the adaptive layout capability of the layout container in the layout file, a size and a location of a child view in the layout container on a display interface.
-
公开(公告)号:US20230325209A1
公开(公告)日:2023-10-12
申请号:US18042929
申请日:2021-07-23
Applicant: Huawei Technologies Co., Ltd.
Inventor: Shiyi Xiong , Bo Tang , Xiaoxiao Chen , Zhihua Yin
Abstract: An application installation package of a first application includes a first description file and a second description file that are used to perform interface description and interface behavior definition on a UI of the first application. The first description file and the second description file use different interface description languages. The first description file uses a first interface description language, and the second description file uses a second interface description language. When an electronic device runs the first application, a first UI engine reads, parses, and executes the first description file, to generate a first part of a first UI; and a second UI engine reads, parses, and executes the second description file, to generate a second part of the first UI.
-