원래 보이지 않는 버튼을 갖고 싶습니다. 나는 다음 버튼을보기보기가 사라지는 Android 버튼
으로 퇴색 할 것은 여기에 내 코드
<Button
android:id="@+id/textFade"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:alpha="0"
android:text="Sample Button" />
하고 다음 내 활동에서 onCreate 함수에서 내가
Animation fadeIn = new AlphaAnimation(0, 1);
fadeIn.setInterpolator(new AccelerateInterpolator()); //add this
fadeIn.setDuration(1000);
Button b=(Button)findViewById(R.id.textFade);
AnimationSet animation = new AnimationSet(false); //change to false
animation.addAnimation(fadeIn);
b.setAnimation(animation);
를 추가하지만이 작동하지 않습니다. 내가 어떻게 이걸 이룰 수 있니?
친절 감사