Patent ID: 8694898

Claim:
A computer-implemented method for configuring widgets in an electronic device, comprising: counting a number of existing windows and a number of existing views in each of the existing windows; adding a new window, and calculating a new window identification code of the new window according to the number of the existing windows and the number of existing views in each of the existing windows, calculating the new window identification code for the new window according to B+i*K, where “i” is a natural number, “i” equals the number of existing windows; “B” is a static natural number, and is larger than the number of the existing windows, “K” is greater than the number of existing views in one existing window; adding new views to the new window, and calculating a new view identification code of each of the new views according to the new window identification code, wherein calculating the new view identification code for each of the new views according to the new window identification code further comprises: calculating the new view identification code for each of the new views equals the number of the new window+“j”+1, where “j” is a natural number and “j” equals the number of existing views in the new window; and acquiring source information based on each of the new view identification code and associating the source information with new view corresponding to the new view identification code; and displaying the new views.