summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-04-30 16:08:26 -0700
committerYorke Lee <yorkelee@google.com>2014-04-30 17:12:11 -0700
commit9b08f53ac993cffa249b73d3a2cc9ed5a9e71158 (patch)
treed7eab078ca1fb40bd12a481b5e8931dca5484df8 /src
parent1ecd74439787126dcc87178fe0179057bed5b35d (diff)
Fade in speed dial entries
Change-Id: Ida91e3107c5a9f1e3c6a59d51aca8f0f950bcf21
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/SpeedDialFragment.java6
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);