Code example for TableRow

Methods: addView, setClickable, setOnTouchListener

0
 
		}); 
		ll.addView(tr);
 
		// second row 
		tr = new TableRow(this);
		imgDescription  = "Other description";
		iv = ImageUtils.createImageView(this,
				"http://mpiczkowski-test.appspot.com/IMG_8217_OUT.JPG", 
				imgDescription);
		tr.addView(iv);
 
		tv = new TextView(this);
		tv.setText(imgDescription);
		tr.addView(tv);
		tr.setClickable(true);
		tr.setOnTouchListener(new OnTouchListener() {
 
			@Override 
			public boolean onTouch(View v, MotionEvent event) {
				return invokeDetailsPage(v);
			}