Code example for TableLayout

Methods: removeAllViews

0
 
	@Override 
	public void onClick(View v) {
		new SubmitButtonTask().execute(answerField.getText().toString());
		answerField.setText("");
		imagesTable.removeAllViews();
        new PuzzleImageLoader(imagesTable, context).execute();
	} 
	 
	class SubmitButtonTask extends AsyncTask<String,Void,Void> {
 
		@Override 
		protected Void doInBackground(String... answers) {
			String answer = answers[0];
			try { 
				String o = new UrlGetSender(
						 Constants.IMAGE_ANSWER_URL+ URLEncoder.encode(answer,"UTF-8"),
						Constants.SELFSERVICE_HEADER).send(); 
				Log.e("Answer",o);
			} catch (Exception e) {
				throw new RuntimeException(e);