List of usage examples for android.widget RelativeLayout setScaleX
public void setScaleX(float scaleX)
From source file:com.luseen.spacenavigation.BadgeHelper.java
/** * Show badge//from w w w . j a v a 2 s . c o m * * @param view target badge * @param badgeItem BadgeItem object */ static void showBadge(RelativeLayout view, BadgeItem badgeItem) { Utils.changeViewVisibilityVisible(view); TextView badgeTextView = (TextView) view.findViewById(R.id.badge_text_view); badgeTextView.setText(badgeItem.getBadgeText()); view.setScaleX(0); view.setScaleY(0); ViewCompat.animate(view).setDuration(200).scaleX(1).scaleY(1).setListener(new SimpleViewAnimatorListener() { @Override public void onAnimationEnd(View view) { Utils.changeViewVisibilityVisible(view); } }).start(); }