動的にImageViewのmargin(マージン)とかを変更したいのよね

ImageView photo_thum = (ImageView) view2.findViewById(R.id.photo_thum);
photo_thum.setMargin();

みたいにできると思うやん?できんから。

					ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams)photo_thum.getLayoutParams();
					lp.rightMargin = 10;
					photo_thum.setLayoutParams(lp);

一度、MarginLayoutParams に通すのね。これを利用すればなんでもオッケーオッケー。