@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.my_integration); my_document_integration_back = (ImageButton) findViewById(R.id.my_document_integration_back); my_document_integration_back.setOnClickListener(this); my_integration_score_totle = (TextView) findViewById(R.id.my_integration_score_totle); my_integration_access = (TextView) findViewById(R.id.my_integration_access); my_intergrationListView = (ListView) findViewById(R.id.my_integrationListView); adapter = new MyIntegrationAdapter(); my_intergrationListView.setAdapter(adapter); getData(); }
protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.my_set_intrest); setIntetrestArr = DocumentActivity.my_Str_interestArray; selectedInteres = new ArrayList<String>(); for (int i = 0; i < setIntetrestArr.length; i++) { selectedInteres.add(setIntetrestArr[i]); System.out.println("得到的兴趣爱好:" + setIntetrestArr[i]); } my_document_setIntrest_back = (ImageButton) findViewById(R.id.my_document_setIntrest_back); my_document_setIntrest_back.setOnClickListener(this); my_btn_setIntrest_complete = (ImageButton) findViewById(R.id.my_btn_setIntrest_complete); my_btn_setIntrest_complete.setOnClickListener(this); my_set_intrest_center = (LinearLayout) findViewById(R.id.my_set_intrest_center); my_interest_num1 = (TextView) findViewById(R.id.my_interest_num1); my_interest_num2 = (TextView) findViewById(R.id.my_interest_num2); my_interest_num3 = (TextView) findViewById(R.id.my_interest_num3); my_interest_num4 = (TextView) findViewById(R.id.my_interest_num4); my_interest_num5 = (TextView) findViewById(R.id.my_interest_num5); my_interest_num1.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { removeInterestText(((TextView) v).getText().toString()); } }); my_interest_num2.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { removeInterestText(((TextView) v).getText().toString()); } }); my_interest_num3.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { removeInterestText(((TextView) v).getText().toString()); } }); my_interest_num4.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { removeInterestText(((TextView) v).getText().toString()); } }); my_interest_num5.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { removeInterestText(((TextView) v).getText().toString()); } }); LinearLayout intrestContainer1 = (LinearLayout) findViewById(R.id.mySetIntrest_intrestContainer1); for (int i = 0; i < intrestContainer1.getChildCount(); i++) { View view = intrestContainer1.getChildAt(i); view.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View arg0) { TextView tv = (TextView) arg0; if (tv != null) { setInterestText(tv.getText().toString()); } } }); } LinearLayout intrestContainer2 = (LinearLayout) findViewById(R.id.mySetIntrest_intrestContainer2); for (int i = 0; i < intrestContainer2.getChildCount(); i++) { View view = intrestContainer2.getChildAt(i); view.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View arg0) { TextView tv = (TextView) arg0; if (tv != null) { setInterestText(tv.getText().toString()); } } }); } LinearLayout intrestContainer3 = (LinearLayout) findViewById(R.id.mySetIntrest_intrestContainer3); for (int i = 0; i < intrestContainer3.getChildCount(); i++) { View view = intrestContainer3.getChildAt(i); view.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View arg0) { TextView tv = (TextView) arg0; if (tv != null) { setInterestText(tv.getText().toString()); } } }); } showSelectedInterest(); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.my_allcount); }