Research Article
Development and Application of an Intelligent Evaluation and Control Platform for Tunnel Smooth Blasting
Pseudocode 3
Evaluate and control interface code.
public void onCreate(Bundle savedInstanceState) { | super.onCreate(savedInstanceState); | setContentView(R.layout.pingjia); | service = new Service(getBaseContext()); | pingjiaButton = (Button) findViewById(R.id.button_kaishipingjia); | pingjiaButton.setOnClickListener(new OnClickListener() { | @Override | public void onClick(View v) { | pingjiajisuan(); | } | }); | renderDuanmianList(); | } | …… | SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, | R.layout.list_pingjia, c, new String[] { "No_blasthole","effect_1","class_1","control_suggestion"}, | new int[] { | R.id.list_duanmian,R.id.list_fenshu,R.id.list_dengji,R.id.list_suggestion}); | setListAdapter(adapter); | } |
|