How to set Width and Height for View Programmatically in Android
This post about how to set the height and width for Imageview or Textview or Views programmatically . See below the example.
This post about how to set the height and width for Imageview or Textview or Views programmatically . See below the example.
ImageView view = new ImageView(this);
view.getLayoutParams().width =100;
view.getLayoutParams().height = 320;
No comments:
Post a Comment