CN112581561A - Method and device for creating pin view, electronic equipment and storage medium - Google Patents

Method and device for creating pin view, electronic equipment and storage medium Download PDF

Info

Publication number
CN112581561A
CN112581561A CN202011563989.9A CN202011563989A CN112581561A CN 112581561 A CN112581561 A CN 112581561A CN 202011563989 A CN202011563989 A CN 202011563989A CN 112581561 A CN112581561 A CN 112581561A
Authority
CN
China
Prior art keywords
pin
view
textview
information
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011563989.9A
Other languages
Chinese (zh)
Inventor
刘均
黄海志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011563989.9A priority Critical patent/CN112581561A/en
Publication of CN112581561A publication Critical patent/CN112581561A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method for creating a pin view, which comprises the following steps: establishing a preset number of pin units according to the number of pins of the component; acquiring each TextView control of a preset number of pin units, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container; and inquiring the TextView control with the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component. According to the method, the TextView control corresponding to the pin number can be found to set the pin information according to different requirements, the pin information can be accurately and quickly set, and the efficiency of manufacturing the pin view is improved. The application also provides a device for creating the pin view, an electronic device and a computer readable storage medium, which have the beneficial effects.

Description

Method and device for creating pin view, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic circuit technologies, and in particular, to a method and an apparatus for creating a pin view, an electronic device, and a computer-readable storage medium.
Background
Today's society has a vast amount of metering information such as time, temperature, length, speed, pressure, pin voltage, etc. With the continuous updating and progress of the times and the technology, the metering information of the modern society is increased day by day, the display modes of the information are various, the information is displayed by a traditional mechanical instrument, and the information is also displayed by a view simulated by software, such as a common oscillogram, an instrument panel, pin values and the like.
The pin view includes the pin number, pin information, and the like. In the related technology, a UI engineer makes a picture, and then the picture is imported into a project by an android engineer, in the mode, the number of pins and information are determined when the picture is made, and when the later-stage engineer wants to change the value of the position of the pin corresponding to the picture, the TextView control needs to be added to match the position of the picture instead of the control, so that the position matching is very troublesome and the positioning is inaccurate.
Disclosure of Invention
The application aims to provide a method for creating a pin view, which can accurately and quickly set pin information and improve the efficiency of manufacturing the pin view. The specific scheme is as follows:
in a first aspect, the present application discloses a method for creating a pin view, comprising:
establishing a preset number of pin units according to the number of pins of the component;
acquiring each TextView control of the pin units with the preset number, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container;
and inquiring a TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain a pin view of the component.
Optionally, the setting, by using the TextView control, pin information of a pin corresponding to the pin number, and after obtaining a pin view of the component, further includes:
according to the combination sequence of each pin unit in the pin view, carrying out sequencing labeling on each pin unit;
the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit is set to be hidden.
Optionally, the setting, by using the TextView control, pin information of a pin corresponding to the pin number, and after obtaining a pin view of the component, further includes:
acquiring each partial view in the pin unit;
and setting the corresponding partial view state in the pin view as hidden according to the view requirement.
Optionally, the querying, according to the pin information of the component, a TextView control of a pin number corresponding to the pin information from the control list container, and setting, by using the TextView control, the pin information of a pin corresponding to the pin number to obtain a pin view of the component include:
and inquiring a TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the voltage value, the pin background color and the pin text color of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
Optionally, the setting, by using the TextView control, pin information of a pin corresponding to the pin number, and after obtaining a pin view of the component, further includes:
determining a pin serial number in pin updating information according to the pin updating information;
and querying a TextView control corresponding to the pin serial number from the control list container, and modifying the pin information of the pin serial number by using the TextView control.
In a second aspect, the present application discloses an apparatus for creating a pin view, comprising:
the device comprises a creating module, a setting module and a control module, wherein the creating module is used for creating pin units with preset number according to the number of pins of the component;
the acquisition module is used for acquiring each TextView control of the pin units with the preset number, marking pin serial numbers of the TextView controls and storing the marked TextView controls into a control list container;
and the setting module is used for inquiring the TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, setting the pin information of the pin corresponding to the pin number by using the TextView control, and obtaining the pin view of the component.
Optionally, the method further includes:
the pin sorting and labeling module is used for sorting and labeling the pin units according to the combination sequence of the pin units in the pin view;
the first setting module is used for setting the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit as hidden.
Optionally, the method further includes:
a partial view acquiring module, configured to acquire partial views of the pin units;
and the second setting module is used for setting the corresponding partial view state in the pin view as hidden according to the view requirement.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for creating a pin view as described above when executing the computer program.
In a fourth aspect, the present application discloses a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of creating a pin view as described above.
The application provides a method for creating a pin view, which comprises the following steps: establishing a preset number of pin units according to the number of pins of the component; acquiring each TextView control of the pin units with the preset number, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container; and inquiring a TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain a pin view of the component.
Therefore, according to the method, the marked textView controls are stored in the control list container by acquiring the textView controls of the pin unit, marking pin numbers of the textView controls and storing the marked textView controls in the control list container; then inquiring a TextView control corresponding to the pin number from the control list container according to the pin information, and setting the pin information of the pin number by using the TextView control; the method and the device have the advantages that the TextView control corresponding to the pin number can be found to set the pin information according to different requirements, the pin information can be accurately and quickly set, the defects that in the related technology, the pin view is in a fixed picture form, the TextView control needs to be introduced when the pin information is modified, the position matching is complicated, the matching is inaccurate, the pin view manufacturing efficiency is improved, and the user experience is improved. The application also provides a device for creating the pin view, an electronic device and a computer readable storage medium, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for creating a pin view according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a pin unit according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of another pin unit provided in the embodiment of the present application;
fig. 4 is a schematic diagram of a pin view display effect according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of another method for creating a pin view provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of another pin view display effect provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus for creating a pin view according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a common pin view manufacturing method, a picture is manufactured, information of pins in the picture is fixed, when a later engineer wants to change the numerical value of the pin, a TextView control needs to be added for pin position matching, the matching process is troublesome, and the matching positioning is inaccurate. Based on the above technical problem, this embodiment provides a method for creating a pin view, which can find a TextView control corresponding to a pin number according to different requirements to set pin information, and can accurately and quickly set pin information, specifically refer to fig. 1, where fig. 1 is a flowchart of the method for creating a pin view provided in this embodiment of the present application, and specifically includes:
s101, establishing a preset number of pin units according to the number of pins of the component.
In this embodiment, the number of pins of the component is not limited, and the pin may include any number of pins, and may be determined according to the specific component. In this embodiment, the pin units include upper and lower pins, and the number of the pin units, that is, the number of the pin units with the preset number, is determined according to the number of the pins of the specific component. For example, if the component includes 16 pins, the number of the pin units is 8. The present embodiment can create a pin unit by layout xml (r.layout. It can be understood that the pin unit may include an upper pin, a lower pin, an upper pin frame, a lower pin frame, and a middle blank area between the upper frame and the lower frame, where the upper pin, the lower pin, the upper pin frame, and the lower pin frame are all made of android TextView controls, that is, one pin unit includes 4 TextView controls. And it can be understood that the pins and the lead frames are corresponding to each other, that is, the corresponding lead frame can be determined according to the pin serial numbers of the pins. The middle blank area may be displayed by a View, and the color of the middle blank area is not limited in this embodiment. Optionally, in order to distinguish from the lead frame and make the manufacturing effect more beautiful, colors other than white, such as gray, may be used, and may be selected according to actual requirements.
S102, obtaining each TextView control of a preset number of pin units, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container.
It is understood that the pin view is assembled in the view container in this embodiment, and a view container may be created in the main interface layout, and the preset number of pin units are combined by using the view container. The present embodiment does not limit the specific type of the bottom map of the view container, and the obd _ pin _ bg bottom map may be used, or other bottom maps may be used.
It can be understood that in this embodiment, the upper and lower pins and the upper and lower pin frames of the pin unit are all made of TextView controls, and after all the TextView controls of the preset number of pin units are obtained, pin number marking is performed on each TextView control. In this embodiment, the pin units with the preset number may be combined first and then the pin serial numbers are marked, or the pin serial numbers may be marked first and then the pin units with the preset number are combined. The present embodiment does not limit the order of marking, and when the pin units are combined first and then marked, the pin numbers of the upper row of pins may be marked first, and then the pin numbers of the lower row of pins may be marked; and when the pin serial numbers are marked firstly, after the marking of each pin unit is finished, the pin units are combined according to the pin serial numbers. For example, in this embodiment, each pin unit is combined first, and then pin serial numbers are marked, and the marking sequence may be sequentially marked according to the sequence of the upper row of pins and the lower row of pins, for example, 8 pin units, that is, 16 pins, so that the pin serial numbers of the upper row of pins are 1 to 8, and the pin serial numbers of the lower row of pins are 9 to 16.
And after the pin number marking of each TextView control is finished, storing each marked TextView control into a control list container. It is understood that the control list container is a container for storing the TextView control. When the pin information of a certain pin needs to be modified at the later stage conveniently, after the pin serial number of the pin is inquired, the TextView control corresponding to the pin can be quickly found in the control list container, and then the corresponding pin information is modified by utilizing the TextView control.
S103, inquiring a TextView control with pin number corresponding to pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
The present embodiment does not limit the specific content of the pin information, and may include a display state of the pin number, a voltage value of each pin, a ground color of the pin frame, and the like. In this embodiment, according to the pin information of the component and the pin number of each pin, the TextView control corresponding to the pin number is queried from the control list container, and then the pin information of the corresponding pin is set by using the TextView control, so as to finally obtain the pin view of the component.
In a specific embodiment, according to pin information of a component, querying a TextView control of a pin number corresponding to pin information from a control list container, setting the pin information of a pin corresponding to the pin number by using the TextView control, and obtaining a pin view of the component may include:
and inquiring a TextView control with pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the voltage value, the pin background color and the pin text color of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
That is, in this embodiment, when the pin information of the component includes a voltage value, a pin ground color, and a pin text color, according to the pin information of the component and the pin number of each pin, the TextView control corresponding to the pin number is queried from the control list container, and then the voltage value, the pin ground color, and the pin text color of the corresponding pin are set by using the TextView control, so as to obtain a pin view of the component.
In a specific embodiment, in order to make the generated pin view more beautiful, in this embodiment, the setting, by using the TextView control, pin information of a pin corresponding to a pin number, and after obtaining the pin view of the component, may further include:
according to the combination sequence of each pin unit in the pin view, sequencing and labeling each pin unit;
the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit is set to be hidden.
That is, in this embodiment, each pin unit is sorted and labeled according to the combination sequence of each pin unit in the pin view, that is, the serial number of the pin unit for combination is the serial number obtained by sorting the pin units. And setting the pin serial numbers of other pin units except the minimum serial number and the maximum serial number to be hidden, namely displaying the pin serial numbers of two pin units with the minimum serial number and the maximum serial number. For example, 8 pin units are provided, only the pin numbers of the first pin unit and the 8 th pin unit are displayed, and the pin numbers of the 2 nd to 7 th pin units are hidden and not displayed, so that the generated view container is more attractive.
In a specific embodiment, in order to make the pin view more beautiful, the setting, by using the TextView control, pin information of pins corresponding to pin numbers, and after obtaining the pin view of the component, may further include:
acquiring each partial view in the pin unit;
and setting the corresponding partial view state in the pin view as hidden according to the view requirement.
It is understood that the pin cell contains 4 TextView controls, and the View portion of the middle blank area. In this embodiment, after the partial view of the pin unit is acquired, the partial view state in the pin view is set to be hidden according to the view requirement, so that the purpose of beauty can be achieved.
Based on the technical scheme, the embodiment stores the marked TextView controls in a control list container by acquiring each TextView control of the pin unit and marking pin serial numbers of each TextView control; and then according to the pin information, inquiring the TextView control corresponding to the pin number from the control list container, setting the pin information of the pin number by using the TextView control, and according to different requirements, finding the TextView control corresponding to the pin number to set the pin information, thereby accurately and quickly setting the pin information, improving the efficiency of making a pin view and improving the user experience.
In the following, a specific embodiment is provided, the pin for manufacturing the component is a 16pin view, and 8 pin units need to be combined.
1. Establishing a pin unit comprising an upper pin and a lower pin through layout xml of android; fig. 2 shows the effect of the pin unit.
It can be seen that, the numbers 1 and 9, the upper and lower pin frames are both made of android TextView controls, that is, one pin unit has 4 TextView controls; the middle blank area can be divided into 5 parts which are all View views; wherein the left and right partial views can be labeled View a, View B, respectively, as shown in fig. 3.
2. And creating a view container view _ container in the layout of the main interface, and adopting an obd _ pin _ bg base map.
3. And creating a TextView control list container, which is called a control list container for short.
private List<TextView>textViewList=new ArrayList<>();
4. And acquiring 4 corresponding TextiView controls, ViewA and ViewB from the pin unit, making pin serial number identifications, storing the pin serial number identifications into a control list container, and adding the pin unit into the view container.
5. And inquiring a corresponding TextiView control from the space list container according to the pin information of the component and the pin number, and setting the pin information of each pin unit by using the TextiView control.
The relevant codes are as follows:
for(int i=0;i<8;i++){
// generating a pin view Unit
View view=inflater.inflate(R.layout.layout_item_obd_pin,null);
// get TextView control of Pin on Top of View cell
TextView tv_pin_top=view.findViewById(R.id.tv_pin_top);
// set the top row pin order number from 1: 1 to 8
tv_pin_top.setTag(i+1);
// get View cell Down Pin TextView control
TextView tv_pin_bottom=view.findViewById(R.id.tv_pin_bottom);
// set the lower row pin number starting at 9: 9 to 16
tv_pin_bottom.setTag(i+9);
// Add Top Pin TextView control to control List Container
textViewList.add(tv_pin_top);
v/Add the lower row of the TextView controls into the control list container
textViewList.add(tv_pin_bottom);
// Pin View element added to View Container
view_container.addView(view);
In order to achieve the purpose of aesthetic appearance, in this embodiment, only the pin numbers 1, 8, 9, and 16 are displayed, other pin numbers are hidden, and the View a of the first pin unit and the View B of the 8 th pin unit are hidden. The 4 th and 5 th pin units are also provided to display GND and ground. The display results are shown in FIG. 4. The relevant codes are as follows:
if(i==0){
if it is the first pin View unit, the ViewA of the View View is hidden for aesthetic purposes
view.findViewById(R.id.view_left).setVisibility(View.INVISIBLE);
}else if(i!=7){
If the number of the pin view units is 2-7, the pin numbers are hidden (only the pin numbers of 1, 8, 9 and 16 are displayed), so that the purpose of attractive appearance is achieved
view.findViewById(R.id.tv_index_top).setVisibility(View.INVISIBLE);
view.findViewById(R.id.tv_index_bottom).setVisibility(View.INVISIBLE);
if(i==3||i==4){
If it is the 4 th 5 th pin view unit, the display 'GND' and ground color are specified
TextView tv_index_top=view.findViewById(R.id.tv_pin_top);
tv_index_top.setText("GND");
tv_index_top.setBackgroundResource(R.color.gray_title4);
tv_index_top.setTextColor(mContext.getResources().getColor(R.color.color_8e8e93));
}
}else{
// if it is the 8 th pin view unit
TextView tv_index_top=view.findViewById(R.id.tv_index_top);
v/Change Upper rank Pin number 9
tv_index_top.setText("8");
TextView tv_index_bottom=view.findViewById(R.id.tv_index_bottom);
v/Change Upper rank Pin order number is 16
tv_index_bottom.setText("16");
ViewB hiding of/View View for aesthetic purposes
view.findViewById(R.id.view_right).setVisibility(View.INVISIBLE);
}}
Based on the foregoing embodiments, in order to meet the user requirements and accurately and efficiently update pin information, the present embodiment provides a method for creating a pin view, specifically please refer to fig. 5, where fig. 5 is a flowchart of another method for creating a pin view provided in the present embodiment, and the method includes:
s501, creating pin units with preset number according to the number of pins of the component.
S502, obtaining each TextView control of a preset number of pin units, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container.
S503, inquiring a TextView control with pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
For specific contents of step S501 and step S503, reference may be made to the above embodiments, which are not described in detail again in this embodiment.
S504, according to the pin updating information, the pin serial number in the pin updating information is determined.
And S505, inquiring the TextView control corresponding to the pin number from the control list container, and modifying the pin information of the pin number by using the TextView control.
That is, in this embodiment, when the pin information needs to be changed and updated, the pin number to be updated is determined according to the pin update information, the TextView control corresponding to the pin number is queried from the space list container, and the pin information corresponding to the pin number is modified by using the TextView control, so that the purpose of accurately and quickly updating the pin information can be achieved, position matching is not required, the defects of complicated position matching process and inaccurate matching are avoided, and the pin view manufacturing efficiency is improved.
The following is a specific embodiment provided in this embodiment, and the final display effect can refer to fig. 6, and the related codes are as follows:
setting the information of the 1 st pin to 0.5V, the ground color is rectangle _ bk _3 (custom red), and the font color is white
setPinText(1,"0.5V",R.drawable.rectangle_bk_3,R.color.white);
Setting the information of the 6 th pin to 2.5V, the ground color is white, and the font color is black
setPinText(6,"2.5V",R.color.white,R.color.black);
Setting the information of the 11 th pin to 2.5V, the ground color is white, and the font color is black
setPinText(11,"2.5V",R.color.white,R.color.black);
Setting the information of the 12 th pin to 2.5V, the ground color is white, and the font color is black
setPinText(12,"2.5V",R.color.white,R.color.black);
// set the information of the 16 th pin to 12.2V, the ground color is rectangle _ bk _3 (custom red), and the font color is white
setPinText(16,"12.2V",R.drawable.rectangle_bk_3,R.color.white);
The pin view is customized according to different requirements, namely the number of pins is customizable, the ground colors of the pins are variable, the voltage values of the pins are variable, the font colors of the pins are variable, and the pin view is conveniently and simply manufactured.
Based on the technical scheme, the pin view is customized according to different requirements, the pin information can be simply, conveniently and timely updated according to user requirements, accuracy and high efficiency are achieved, the efficiency of manufacturing the pin view is improved, and user experience is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an apparatus for creating a pin view provided in an embodiment of the present application, where the apparatus for creating a pin view described below and the method for creating a pin view described above may be referred to correspondingly, and the relevant modules are all disposed therein, and the apparatus for creating a pin view provided in the embodiment of the present application includes:
in some specific embodiments, the method specifically includes:
a creating module 701, configured to create a preset number of pin units according to the number of pins of the component;
an obtaining module 702, configured to obtain each TextView control of a preset number of pin units, mark pin numbers of each TextView control, and store each marked TextView control into a control list container;
the setting module 703 is configured to query, according to the pin information of the component, a TextView control with pin number corresponding to the pin information from the control list container, and set, by using the TextView control, the pin information of the pin corresponding to the pin number to obtain a pin view of the component.
In some specific embodiments, the method further comprises:
the pin sorting and labeling module is used for sorting and labeling the pin units according to the combination sequence of the pin units in the pin view;
the first setting module is used for setting the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit as hidden.
In some specific embodiments, the method further comprises:
the acquisition part view module is used for acquiring each part view in the pin unit;
and the second setting module is used for setting the corresponding partial view state in the pin view as hidden according to the view requirement.
In some specific embodiments, the setting module 703 includes:
and the setting unit is used for inquiring the TextView control with the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the voltage value, the pin background color and the pin text color of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
In some specific embodiments, the method further comprises:
the determining module is used for determining pin serial numbers in the pin updating information according to the pin updating information;
and the modification module is used for inquiring the TextView control corresponding to the pin number from the control list container and modifying the pin information of the pin number by using the TextView control.
Since the embodiment of the apparatus part for creating a pin view corresponds to the embodiment of the method part for creating a pin view, please refer to the description of the embodiment of the method part for creating a pin view, which is not repeated here.
In the following, an electronic device provided by the embodiments of the present application is introduced, and the electronic device described below and the method for creating a pin view described above may be referred to correspondingly.
The application provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for creating a pin view as described above when executing a computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the method portion for creating a pin view, please refer to the description of the embodiment of the method portion for creating a pin view for the embodiment of the electronic device portion, which is not repeated here.
The following describes a computer-readable storage medium provided by an embodiment of the present application, and the computer-readable storage medium described below and the method for creating a pin view described above may be referred to correspondingly.
The present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of creating a pin view as described above.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the method portion for creating a pin view, please refer to the description of the embodiment of the method portion for creating a pin view for the embodiment of the computer-readable storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
A method, an apparatus, an electronic device, and a computer-readable storage medium for creating a pin view provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method of creating a pin view, comprising:
establishing a preset number of pin units according to the number of pins of the component;
acquiring each TextView control of the pin units with the preset number, marking pin serial numbers of the TextView controls, and storing the marked TextView controls into a control list container;
and inquiring a TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain a pin view of the component.
2. The method for creating a pin view according to claim 1, wherein the step of setting pin information of pins corresponding to the pin numbers by using the TextView control to obtain the pin view of the component further comprises the steps of:
according to the combination sequence of each pin unit in the pin view, carrying out sequencing labeling on each pin unit;
the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit is set to be hidden.
3. The method for creating a pin view according to claim 1, wherein the step of setting pin information of pins corresponding to the pin numbers by using the TextView control to obtain the pin view of the component further comprises the steps of:
acquiring each partial view in the pin unit;
and setting the corresponding partial view state in the pin view as hidden according to the view requirement.
4. The method for creating a pin view according to claim 1, wherein the step of querying a TextView control of a pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the pin information of a pin corresponding to the pin number by using the TextView control to obtain the pin view of the component comprises the steps of:
and inquiring a TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, and setting the voltage value, the pin background color and the pin text color of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component.
5. The method for creating the pin view according to any one of claims 1 to 4, wherein the step of setting the pin information of the pin corresponding to the pin number by using the TextView control to obtain the pin view of the component further comprises the following steps:
determining a pin serial number in pin updating information according to the pin updating information;
and querying a TextView control corresponding to the pin serial number from the control list container, and modifying the pin information of the pin serial number by using the TextView control.
6. An apparatus for creating a pin view, comprising:
the device comprises a creating module, a setting module and a control module, wherein the creating module is used for creating pin units with preset number according to the number of pins of the component;
the acquisition module is used for acquiring each TextView control of the pin units with the preset number, marking pin serial numbers of the TextView controls and storing the marked TextView controls into a control list container;
and the setting module is used for inquiring the TextView control of the pin number corresponding to the pin information from the control list container according to the pin information of the component, setting the pin information of the pin corresponding to the pin number by using the TextView control, and obtaining the pin view of the component.
7. The apparatus for creating a pin view of claim 6, further comprising:
the pin sorting and labeling module is used for sorting and labeling the pin units according to the combination sequence of the pin units in the pin view;
the first setting module is used for setting the display state of the pin serial numbers of the other pin units except the minimum serial number pin unit and the maximum serial number pin unit as hidden.
8. The apparatus for creating a pin view of claim 6, further comprising:
a partial view acquiring module, configured to acquire partial views of the pin units;
and the second setting module is used for setting the corresponding partial view state in the pin view as hidden according to the view requirement.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of creating a pin view according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of creating a pin view according to any one of claims 1 to 5.
CN202011563989.9A 2020-12-25 2020-12-25 Method and device for creating pin view, electronic equipment and storage medium Pending CN112581561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011563989.9A CN112581561A (en) 2020-12-25 2020-12-25 Method and device for creating pin view, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011563989.9A CN112581561A (en) 2020-12-25 2020-12-25 Method and device for creating pin view, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112581561A true CN112581561A (en) 2021-03-30

Family

ID=75140543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011563989.9A Pending CN112581561A (en) 2020-12-25 2020-12-25 Method and device for creating pin view, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112581561A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0228332A2 (en) * 1985-12-18 1987-07-08 Schlumberger Technologies, Inc. Automatic test system having a "true tester-per-pin" architecture
WO1991017494A1 (en) * 1990-04-27 1991-11-14 Bachman Information Systems, Inc. Dynamic information management computer system
EP1469320A1 (en) * 2003-04-15 2004-10-20 Rood Technology Deutschland GmbH + Co Method for generating tester controls
US20080141194A1 (en) * 2006-12-07 2008-06-12 Fujitsu Limited Check support apparatus, method, and computer product
US20160154543A1 (en) * 2014-12-02 2016-06-02 Facebook, Inc. Generating a List of Content Items
CN107451370A (en) * 2017-08-11 2017-12-08 哈尔滨工业大学 A kind of method for drafting of the symmetrical pin cake core of robustness
CN107742010A (en) * 2017-09-22 2018-02-27 郑州云海信息技术有限公司 A kind of method for adding pin numbering in batches in encapsulation is established
CN107797662A (en) * 2017-10-23 2018-03-13 北京小米移动软件有限公司 Angle of visual field control method, device and electronic equipment
CN108268411A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 The method and mobile terminal of a kind of data transmission
CN108332320A (en) * 2018-01-16 2018-07-27 杭州华炳电子科技有限公司 A kind of multifunctional air purifying all-in-one machine and application method based on artificial intelligence
CN108647080A (en) * 2018-05-21 2018-10-12 成都路行通信息技术有限公司 Applied to the information processing method and device and computer readable storage medium in terminal
CN109117237A (en) * 2018-09-05 2019-01-01 武汉斗鱼网络科技有限公司 A kind of barrage display methods, device and electronic equipment
CN110046333A (en) * 2018-01-16 2019-07-23 阿里巴巴集团控股有限公司 Information displaying method, data processing method, equipment and system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0228332A2 (en) * 1985-12-18 1987-07-08 Schlumberger Technologies, Inc. Automatic test system having a "true tester-per-pin" architecture
WO1991017494A1 (en) * 1990-04-27 1991-11-14 Bachman Information Systems, Inc. Dynamic information management computer system
EP1469320A1 (en) * 2003-04-15 2004-10-20 Rood Technology Deutschland GmbH + Co Method for generating tester controls
US20080141194A1 (en) * 2006-12-07 2008-06-12 Fujitsu Limited Check support apparatus, method, and computer product
US20160154543A1 (en) * 2014-12-02 2016-06-02 Facebook, Inc. Generating a List of Content Items
CN108268411A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 The method and mobile terminal of a kind of data transmission
CN107451370A (en) * 2017-08-11 2017-12-08 哈尔滨工业大学 A kind of method for drafting of the symmetrical pin cake core of robustness
CN107742010A (en) * 2017-09-22 2018-02-27 郑州云海信息技术有限公司 A kind of method for adding pin numbering in batches in encapsulation is established
CN107797662A (en) * 2017-10-23 2018-03-13 北京小米移动软件有限公司 Angle of visual field control method, device and electronic equipment
CN108332320A (en) * 2018-01-16 2018-07-27 杭州华炳电子科技有限公司 A kind of multifunctional air purifying all-in-one machine and application method based on artificial intelligence
CN110046333A (en) * 2018-01-16 2019-07-23 阿里巴巴集团控股有限公司 Information displaying method, data processing method, equipment and system
CN108647080A (en) * 2018-05-21 2018-10-12 成都路行通信息技术有限公司 Applied to the information processing method and device and computer readable storage medium in terminal
CN109117237A (en) * 2018-09-05 2019-01-01 武汉斗鱼网络科技有限公司 A kind of barrage display methods, device and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "New Valve-Gate Controls And Actuators at NPE", 《 PLASTICS TECHNOLOGY》, vol. 61, no. 3, pages 121 *
付加庭;何芳;闸建文;: "RS-232串口在阴燃取暖炉数据采集系统中的应用", 农业装备与车辆工程, no. 11, pages 43 - 46 *
王平, 普杰信: "基于特征匹配的芯片管脚视觉检测系统设计", 电脑开发与应用, no. 07, pages 30 - 31 *
王志成;程勇;潘洪涛;樊玉琦;: "RosLaunch文件的可视化创建方法设计与实现", 软件, no. 02, pages 41 - 46 *

Similar Documents

Publication Publication Date Title
JP2021061034A (en) Method and system for generating questionnaire
JP2014522048A (en) Kanji composition method and apparatus, character composition method and apparatus, and font library construction method
CN106354513A (en) Layered development method for form
US20170090723A1 (en) Widgets in digital dashboards
CN109064249A (en) A kind of clothes recommendation optimization method and its system based on feature personalization modification
CN105868289A (en) Multimedia courseware generating method and apparatus
KR20120074318A (en) Method and system for assisting with colour selection
CN111857878B (en) Skeleton screen page generation method and device, electronic equipment and storage medium
CN108961361B (en) Method and system for generating special effect text image and computer equipment
US20220012408A1 (en) Generating style configuration files using a library of styles
CN112581561A (en) Method and device for creating pin view, electronic equipment and storage medium
CN107577768A (en) Import processing method, device and the intelligent terminal of cover document
Wen Research on color design principles of ui interface of mobile applications based on vision
CN117271932A (en) Dynamic resource management method of software development platform
CN108292319A (en) Determine the appearance of the element for being displayed on
CN110489724A (en) Synthetic method, mobile terminal and the storage medium of hand-written script
KR101455688B1 (en) A method of memorizing study using the attributes of color on smart device
CN109960771B (en) Advertisement display method
Österman Map visualization in ArcGIS, QGIS and MapInfo
CN101213588B (en) Image generation device and method, and image display device and method
CN108647198B (en) Unity-based character editing method and terminal
CN109478200A (en) Utilize the device and method that font is generated by first font of profile font
CN100349203C (en) Co-screen displaying device supporting scale chracter shape and method thereof
CN110888700A (en) Method and device for configuring promotion page, readable storage medium and computer equipment
CN110223217A (en) A kind of planar design automatic addition decorative element information processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination