Code example for Spinner

Methods: getSelectedItemId

0
	} 
 
	private void updateView1(String title) {
		  
		  
		int flag = (int) yw1_choose.getSelectedItemId();
		View view = barChart.executeview(this, Color.RED,  title, flag);
		LinearLayout.LayoutParams mLayoutParams = new LinearLayout.LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
		// 在父类布局中添加它,及布局样式 
		show_barchart.removeAllViews();
		show_barchart.addView(view, mLayoutParams);
	} 
 
	private void updateView() { 
 
		View view = pieChart.executeview(this, values, titles, colors);
 
		LinearLayout.LayoutParams mLayoutParams = new LinearLayout.LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
		// 在父类布局中添加它,及布局样式