From 9b08f53ac993cffa249b73d3a2cc9ed5a9e71158 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 30 Apr 2014 16:08:26 -0700 Subject: Fade in speed dial entries Change-Id: Ida91e3107c5a9f1e3c6a59d51aca8f0f950bcf21 --- src/com/android/dialer/list/SpeedDialFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/dialer/list/SpeedDialFragment.java b/src/com/android/dialer/list/SpeedDialFragment.java index 9de75bb64..cfcea9ddb 100644 --- a/src/com/android/dialer/list/SpeedDialFragment.java +++ b/src/com/android/dialer/list/SpeedDialFragment.java @@ -32,6 +32,8 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; +import android.view.animation.AnimationUtils; +import android.view.animation.LayoutAnimationController; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; @@ -216,6 +218,10 @@ public class SpeedDialFragment extends Fragment implements OnItemClickListener, mTileInteractionTeaserView = (TileInteractionTeaserView) inflater.inflate( R.layout.tile_interactions_teaser_view, mListView, false); + final LayoutAnimationController controller = new LayoutAnimationController( + AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in)); + controller.setDelay(0); + mListView.setLayoutAnimation(controller); mListView.setAdapter(mContactTileAdapter); mListView.setOnScrollListener(mScrollListener); -- cgit v1.2.3