1.tranlate_dialog_out(顯示動畫)
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="400"/>
</set>
2.tranlate_dialog_in(隱藏動畫)
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="400"/>
3.顯示佈局
bottom.startAnimation(AnimationUtils.loadAnimation(VodPlayerActivity.this, R.anim.tranlate_dialog_out));
bottom.setVisibility(View.VISIBLE);
4.隱藏佈局
bottom.startAnimation(AnimationUtils.loadAnimation(VodPlayerActivity.this, R.anim.tranlate_dialog_in));
bottom.setVisibility(View.GONE);