Abstract:
The present disclosure relate to the field of electronic devices, and particularly provide an application switching method and apparatus and a graphical user interface, to resolve a prior-art problem that multi-task switching has a relatively high requirement on hardware of an electronic device. The application switching method includes: detecting a touch pressure value that is generated by a touch operation when a target region of a touchscreen is touched; when detecting that the touch pressure value is greater than a preset threshold, generating a first display window in a current display interface of an electronic device, and presenting a first application in the first display window according to a preset rule; and switching the current display interface to a display interface of the first application if detecting an enable signal for the first application, where the current display interface is different from the display interface of the first application.
Abstract:
This application discloses an interface element color display method and apparatus. The method includes: obtaining a target image included in a to-be-displayed interface; performing color updating processing on the to-be-displayed interface, including: determining a first dominant color of the target image, determining a color type of the target image based on an area-based ratio of the first dominant color in the target image, determining a first auxiliary color based on the color type, and setting the first auxiliary color as a color of a foreground element; and outputting the to-be-displayed interface that has undergone the color updating processing to a display device for displaying.
Abstract:
This application provides a display method and an electronic device. The electronic device includes a display screen, and the method includes: The electronic device detects a first operation performed by a user on the display screen, and displays, in response to the first operation, a first display interface on the display screen, where the first display interface includes one or a plurality of task cards and a control panel, and the one or each of the plurality of task cards corresponds to an application. The solutions in embodiments of this application help the user quickly start the control panel, thereby improving user experience when the user uses the electronic device.
Abstract:
A method for generating an identification pattern, a terminal device, and the like are provided. The method includes: obtaining a first image (110), where the first image is used to represent any one of a Chinese character, an English character, and an Arabic numeral character; performing transformation on the first image based on a contour line of the first image to obtain a second image (120), where the second image includes the first image and a plurality of contour lines; and generating an identification pattern of a software program based on the second image (130). This application can improve a display effect of the identifier pattern.
Abstract:
A virtual robot image presentation method and an apparatus are provided to improve virtual robot utilization and user experience. In this method, an electronic device generates a first virtual robot image, and presents the first virtual robot image. The first virtual robot image is determined by the electronic device based on scene information. The scene information includes at least one piece of information in first information and second information, the first information is used to represent a current time attribute, and the second information is used to represent a type of an application currently running in the electronic device. According to the foregoing method, in a human-machine interaction process, virtual robot images can be richer and more vivid, so that user experience can be better, thereby improving virtual robot utilization of a user.
Abstract:
A picture obtaining method and apparatus and a picture processing method and apparatus are provided. The method includes: obtaining a grayscale image corresponding to a first picture and a first image, where a size of the first picture is equal to a size of the first image, the first image includes N parallel lines, a spacing between two adjacent lines does not exceed a spacing threshold, and N is an integer greater than 1; translating a pixel included in each line in the first image based on the grayscale image, to obtain a second image, where the second image includes a contour of an image in the first picture; and set a pixel value of each pixel included in each line in the second image, to obtain a second picture.
Abstract:
An information displaying method and a terminal are provided. The method includes: obtaining audio data to be played in a chronological order; determining, based on attribute information at any moment of a sound represented by the audio data, a shape of a graph corresponding to the any moment, where the graph corresponding to the any moment including a closed curve with a bump, and a maximum distance in distances from points on the bump to a center of the graph is positively correlated to a value indicated by the attribute information at the any moment; and displaying the graph corresponding to the any moment. The bump in the graph changes with the value indicated by the attribute information of the sound, and such graph is presented to a user, to enhance perception of the user on the attribute information of the audio data and improve user experience.
Abstract:
A graphic display method and apparatus are provided. In the graphic display method, a terminal may detect a touch operation on a screen when there is a to-be-processed event (S101); obtain touch point coordinates of the touch operation (S102); display, in a position indicated by the touch point coordinates, a touch graphic used to indicate the touch operation (S103), and display, on the screen based on the touch point coordinates, an operation indication graphic corresponding to the to-be-processed event (S104). The touch graphic and the operation indication graphic are displayed on the screen to enable a user to see a current to-be-processed event in a more intuitive and vivid manner, thereby reducing a misoperation rate of a touch operation and improving operation experience of the user.
Abstract:
Embodiments of the present disclosure provide a method and a device for visually presenting data preloading, where the method includes: acquiring a current playback progress of digital media content; presenting a first icon on a progress bar of a player of the digital media content; determining a parameter that is used to indicate a data preloading speed of the digital media content; and presenting, at least one data point in the part, of the progress bar, that has not been played, so as to indicate the data preloading speed. According to the method and the device for visually presenting data preloading provided in the embodiments of the present disclosure, a parameter that is used to indicate a data preloading speed is acquired; therefore, visual presentation of data preloading can be implemented, so that a user can know the data preloading speed, and user experience can be effectively improved.
Abstract:
Embodiments of the present invention provide a media file marking method and apparatus. The media file marking method includes: receiving reaction information that is generated when a user watches a media file and is sent by at least one first terminal device, where the reaction information is collected by the first terminal device when the user watches the media file; generating marking information of the media file according to the reaction information sent by the at least one first terminal device; and sending the marking information of the media file to a second terminal device that plays the media file, so that the second terminal device displays the marking information of the media file. The media file marking method and apparatus provided in the embodiments of the present invention are used to improve accuracy of choosing a media file by a user.