MA
Size: a a a
MA
П
QH
layout.addView(new ImageView(context))
СП
S
ИФ
layout.addView(new ImageView(context))
Enemy (int x, int speed, String type, Context context){
...
imageEnemy = new ImageView(context);
imageEnemy.setImageResource(R.drawable.ic_ship);
imageEnemy.setTranslationX(x);
imageEnemy.setTranslationY(y);
}
public ImageView getImage(){
return imageEnemy;
}
enemies.addLast(new Enemy(5, 10, "Default", getApplicationContext()));Не работает.
((ConstraintLayout)(findViewById(R.id.main_layout))).addView((enemies.getLast()).getImage());
QH
Enemy (int x, int speed, String type, Context context){
...
imageEnemy = new ImageView(context);
imageEnemy.setImageResource(R.drawable.ic_ship);
imageEnemy.setTranslationX(x);
imageEnemy.setTranslationY(y);
}
public ImageView getImage(){
return imageEnemy;
}
enemies.addLast(new Enemy(5, 10, "Default", getApplicationContext()));Не работает.
((ConstraintLayout)(findViewById(R.id.main_layout))).addView((enemies.getLast()).getImage());
ИФ
СП
СП
QH
K
S
ObjectAnimator.ofPropertyValuesHolder(binding.progress, scaleX, scaleY, alpha)
.apply {
interpolator = OvershootInterpolator()
duration = 3000L
}
Как
отключить возможность вызывать анимацию неск раз? СоздаютСП
ObjectAnimator.ofPropertyValuesHolder(binding.progress, scaleX, scaleY, alpha)
.apply {
interpolator = OvershootInterpolator()
duration = 3000L
}
Как
отключить возможность вызывать анимацию неск раз? СоздаютS
СП
ФХ
Ю
MU
VS