can we put images in LinearLayout one after one like
1 4
2 5
3 6
now waht happing is it going off the screen
1
2
3
---end screen--
4
i want 4 shlould come to new column
i am creating image as
ts = new CircularImageView(getApplicationContext());
Bitmap myBitmap = BitmapFactory.decodeFile(path);
ts.setImageBitmap(myBitmap); LinearLayout.LayoutParams
layoutParams = new LinearLayout.LayoutParams( 150, 150);
ts.setLayoutParams(layoutParams);
linearLayout2.addView(ts);
Aucun commentaire:
Enregistrer un commentaire