Information displaying method and apparatus, and storage medium
Abstract
Embodiments of the present disclosure disclose an information displaying method and apparatus, and storage medium. The information display method comprises: acquiring the maximum number of views displayed in a preset row and the number of preset rows in a preset display region according to preset layout requirements; combining the same number of views as the maximum views displayed in the preset row into one row chain; constructing the same number of row chains as the preset row to obtain display row chains, while displaying information among various row chains of the display row chains by position constraint; and displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row when the information to be displayed is acquired.
Claims
exact text as granted — not AI-modified1 . An information display method, comprising:
acquiring the maximum number of views displayed in a preset row and the number of preset rows in a preset display region according to preset layout requirements; combining the same number of views as the maximum views displayed in the preset row into one row chain; constructing the same number of row chains as the preset row to obtain display row chains, wherein information is displayed among various row chains of the display row chains by position constraint; and displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row when the information to be displayed is acquired.
2 . The method of claim 1 , wherein the step of displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row comprises:
determining the quantity of information in the information to be displayed according to preset minimum displaying units; acquiring a first result of dividing the quantity of information by the maximum number of views displayed in the preset row; and distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result, and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains, wherein the second sub-display row chain represents the remaining row chains in the display row chains other than the first sub-display row chain.
3 . The method of claim 2 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is an integer, acquiring the same number of row chains as the first result from the display row chains to obtain the first sub-display row chain; sequentially distributing the same quantity of information as the information in the information to be displayed in each row chain of the first sub-display row chain uniformly to obtain sub-information to be displayed corresponding to each row chain of the first sub-display row chain; sequentially distributing the sub-information to be displayed to the same number of views as the maximum views displayed in the preset row of each row chain of the first sub-display row chain uniformly for display; and setting the views in the second sub-display row chain to a hidden state which indicates that the views are not displayed and a space occupied by the views in the preset display region is not reserved, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
4 . The method of claim 2 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is not an integer and less than one, acquiring one of the row chains from the display row chains to obtain the first sub-display row chain; sequentially distributing the same quantity of information as the information in the information to be displayed to the same quantity of views as the information in one row chain of the first sub-display row chain for display; and setting the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
5 . The method of claim 2 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is not an integer and greater than one, rounding up the first result to obtain a second result; acquiring the same number of row chains as the second result from the display row chains to obtain the first sub-display row chain; acquiring a third result of dividing the quantity of information by the second result; and
distributing the information to be displayed to the first sub-display row chain for display according to the third result, and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains.
6 . The method of claim 5 , wherein the step of distributing the information to be displayed to the first sub-display row chain for display according to the third result and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the third result is an integer, sequentially distributing the same quantity of information as the information in the information to be displayed in each row chain of the first sub-display row chain uniformly to obtain the sub-information to be displayed corresponding to each row chain of the first sub-display row chain; sequentially distributing the information to be displayed to the same number of views as the third result of each row chain of the first sub-display row chain for display; and setting the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
7 . The method of claim 5 , wherein the step of distributing the information to be displayed to the first sub-display row chain for display according to the third result and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the third result is not an integer, sequentially distributing each piece of information in the information to be displayed to each view in each row chain of the first sub-display row chain for display; setting the views without displaying information in the first sub-display row chain to an invisible state and setting the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains, wherein the invisible state indicates that the views are not displayed but the space occupied by the views in the preset display region is reserved.
8 . The method of claim 4 , wherein the views without displaying information in the first sub-display row chain refer to the remaining views in each row chain of the first sub-display row chain other than a first view and a last view.
9 . The method of claim 1 , wherein before combining the same number of views as the maximum views displayed in the preset row into one row chain, the method further comprises:
setting a measurement method of the views; and
correspondingly, the step of combining the same number of views as the maximum views displayed in the preset row into one row chain comprises:
combining the same number of views as the maximum views displayed in the preset row after the measurement method is set into one row chain.
10 . The method of claim 9 , wherein the step of displaying the information to be displayed in the display row chains based on the maximum number of views displayed in the preset row comprises:
acquiring the width of the information in the information to be displayed by the measurement method when the information to be displayed is displayed; setting the height of the information in the information to be displayed according to the width to obtain the set information to be displayed; and displaying the set information to be displayed in the display row chains based on the maximum number of views displayed in the preset row.
11 . The method of claim 1 , wherein before combining the same number of views as the maximum views displayed in the preset row into one row chain, the method further comprises:
setting the width of the views as a preset threshold; and
correspondingly, the step of combining the same number of views as the maximum views displayed in the preset row into one row chain comprises:
combining the same number of set views as the maximum views displayed in the preset row into one row chain.
12 . (canceled)
13 . Electronic equipment, comprising:
a communication bus configured to implement communication between a memory and a processor; the memory configured to store executable instructions; and the processor configured to implement an information display method comprising: acquiring the maximum number of views displayed in a preset row and the number of preset rows in a preset display region according to preset layout requirements; combining the same number of views as the maximum views displayed in the preset row into one row chain; constructing the same number of row chains as the preset row to obtain display row chains, wherein information is displayed among various row chains of the display row chains by position constraint; and displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row when the information to be displayed is acquired.
14 . A computer readable storage medium, on which the executable instructions are stored, when the executable instructions are executed by the processor, cause the processor to implement an information display method comprising:
acquiring the maximum number of views displayed in a preset row and the number of preset rows in a preset display region according to preset layout requirements; combining the same number of views as the maximum views displayed in the preset row into one row chain; constructing the same number of row chains as the preset row to obtain display row chains, wherein information is displayed among various row chains of the display row chains by position constraint; and displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row when the information to be displayed is acquired.
15 . The electronic equipment of claim 13 , wherein the step of displaying information to be displayed in the display row chains based on the maximum number of views displayed in the preset row comprises:
determining the quantity of information in the information to be displayed according to preset minimum displaying units; acquiring a first result of dividing the quantity of information by the maximum number of views displayed in the preset row; and distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result, and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains, wherein the second sub-display row chain represents the remaining row chains in the display row chains other than the first sub-display row chain.
16 . The electronic equipment of claim 15 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is an integer, acquiring the same number of row chains as the first result from the display row chains to obtain the first sub-display row chain; sequentially distributing the same quantity of information as the information in the information to be displayed in each row chain of the first sub-display row chain uniformly to obtain sub-information to be displayed corresponding to each row chain of the first sub-display row chain; sequentially distributing the sub-information to be displayed to the same number of views as the maximum views displayed in the preset row of each row chain of the first sub-display row chain uniformly for display; and setting the views in the second sub-display row chain to a hidden state which indicates that the views are not displayed and a space occupied by the views in the preset display region is not reserved, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
17 . The electronic equipment of claim 15 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is not an integer and less than one, acquiring one of the row chains from the display row chains to obtain the first sub-display row chain; sequentially distributing the same quantity of information as the information in the information to be displayed to the same quantity of views as the information in one row chain of the first sub-display row chain for display; and setting the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
18 . The electronic equipment of claim 15 , wherein the step of distributing the information to be displayed to a first sub-display row chain of the display row chains for display based on the first result and setting display states of the views without displaying information in the first sub-display row chain and the views in a second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the first result is not an integer and greater than one, rounding up the first result to obtain a second result; acquiring the same number of row chains as the second result from the display row chains to obtain the first sub-display row chain; acquiring a third result of dividing the quantity of information by the second result; and
distributing the information to be displayed to the first sub-display row chain for display according to the third result, and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains.
19 . The electronic equipment of claim 18 , wherein the step of distributing the information to be displayed to the first sub-display row chain for display according to the third result and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the third result is an integer, sequentially distributing the same quantity of information as the information in the information to be displayed in each row chain of the first sub-display row chain uniformly to obtain the sub-information to be displayed corresponding to each row chain of the first sub-display row chain; sequentially distributing the information to be displayed to the same number of views as the third result of each row chain of the first sub-display row chain for display; and setting the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains.
20 . The electronic equipment of claim 18 , wherein the step of distributing the information to be displayed to the first sub-display row chain for display according to the third result and setting the display states of the views without displaying information in the first sub-display row chain and the views in the second sub-display row chain, thereby displaying the information to be displayed in the display row chains comprises:
when the third result is not an integer, sequentially distributing each piece of information in the information to be displayed to each view in each row chain of the first sub-display row chain for display; and setting the views without displaying information in the first sub-display row chain to an invisible state and setting the views in the second sub-display row chain to the hidden state, to complete the setting of the display state, thereby displaying the information to be displayed in the display row chains, wherein the invisible state indicates that the views are not displayed but the space occupied by the views in the preset display region is reserved.
21 . The electronic equipment of claim 17 , wherein the views without displaying information in the first sub-display row chain refer to the remaining views in each row chain of the first sub-display row chain other than a first view and a last view.Join the waitlist — get patent alerts
Track US2022245196A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.