diff options
author | Yorke Lee <yorkelee@google.com> | 2014-05-01 16:59:45 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-01 16:59:46 +0000 |
commit | 5e95dda66f6460f86c8f410a9ec5bff55f25a968 (patch) | |
tree | 2cb48720e7818b2dbc63e1fa549f98c3d6151fcc | |
parent | 5a60cf4d91cbe439a0372f4f2374e6a7f7936a41 (diff) | |
parent | 9b08f53ac993cffa249b73d3a2cc9ed5a9e71158 (diff) |
Merge "Fade in speed dial entries"
-rw-r--r-- | src/com/android/dialer/list/SpeedDialFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
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); |