Code example for AbsoluteLayout

Methods: addViewremoveView

0
    Bitmap resizeBmp = Bitmap.createBitmap(bmp,0,0,bmpWidth,bmpHeight,matrix,true); 
      
    if(id==0)
    { 
      /* �p�G�O�Ĥ@�����A�N�������ӳ]�w��ImageView */ 
      layout1.removeView(mImageView);
    } 
    else 
    { 
      /* �p�G���O�Ĥ@�����A�N�����W�@�����j�Y�p�Ҳ��ͪ�ImageView */ 
      layout1.removeView((ImageView)findViewById(id));
    } 
    /* ���ͷs��ImageView�A���JreSize��Bitmap�����A�A���JLayout�� */ 
    id++;
    ImageView imageView = new ImageView(EX04_23.this);  
    imageView.setId(id);
    imageView.setImageBitmap(resizeBmp);
    layout1.addView(imageView); 
    setContentView(layout1);
     
    /* �]���Ϥ������̤j�ɩ��j���s�|disable�A�ҥH�b�Y�p�ɧ��L���]��enable */ 
    mButton02.setEnabled(true);
  } 
Connect your IDE to all the code out there  Get Codota for Java