我想设置的ImageView的XY位置,但方法AbsoluteLayout得到下面的代码上划线,如:为什么AbsoluteLayout方法会被重写?
final ImageView animal = (ImageView)findViewById(R.id.imageView1);
animal.setLayoutParams(new <span style="text-AbsoluteLayout.LayoutParams(animal.getWidth(),animal.getHeight(), x1,y1));
为什么你使用绝对布局,而它已被弃用。 –