tôi có thể thiết lập hình ảnh động làm thoại sử dụng xml như sauAndroid làm thế nào để thiết lập windowanimation lập trình
Dialog myDialog;
myDialog.getWindow().setWindowAnimations(R.style.Animations_sample);
Làm thế nào có thể tôi thêm lập trình tạo ra hình ảnh động để Dialog?
Những gì tôi có nghĩa là tôi đã tạo ra một hình ảnh động như sau
AnimationSet animationSet = new AnimationSet(true);
TranslateAnimation a = new TranslateAnimation(
Animation.ABSOLUTE,200, Animation.ABSOLUTE,200,
Animation.ABSOLUTE,200, Animation.ABSOLUTE,200);
a.setDuration(1000);
animationSet.addAnimation(a);
làm thế nào tôi có thể thiết lập animationSet
-myDialog
là?
Cảm ơn bạn đã ủng hộ.
chính xác ý bạn là gì theo cách lập trình.? –
@SahilMahajanMj Tôi đã chỉnh sửa câu hỏi của mình – Sandy