내 프로그램을위한 간단한 애니메이션을 만들고 싶습니다. 4 개의 보이지 않는 버튼이 있는데, 내가 원하는 것은 프로그램이 시작될 때입니다. 버튼이 지연되어 표시됩니다.지연 표시 버튼 Android Java
버튼 1 -> 버튼 2 -> 등을 표시합니다.
프로그램을 실행하면 모든 버튼이 동시에 나타납니다.
try {
((Button) findViewById(R.id.f1)).setVisibility(View.VISIBLE);
Thread.sleep(1200);
((Button) findViewById(R.id.f2)).setVisibility(View.VISIBLE);
Thread.sleep(1200);
((Button) findViewById(R.id.f3)).setVisibility(View.VISIBLE);
Thread.sleep(1200);
((Button) findViewById(R.id.f4)).setVisibility(View.VISIBLE);
Thread.sleep(1200);
} catch (Exception e) {
}
누구든지 나를 도와 줄 수 있습니까?
그것을 임마! 감사합니다 – felangga