Adding a View to RelativeLayout changes its size
问题 I have a RelativeLayout called "Dress" with LayoutParams of WRAP_CONTENT. All that is inside it is an ImageView, so it is the same size as the ImageView. When I add one more view to the RelativeLayout in OnCreate, like this: photoSorter = new MultitouchImagesView(this.getApplicationContext()); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); ((ViewGroup) findViewById(id.Dress)).addView(photoSorter, params); The