(int dp)
| 20 | } |
| 21 | |
| 22 | private int dpToPx(int dp) { |
| 23 | return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics()); |
| 24 | } |
| 25 | |
| 26 | public void animateViewHeight(View view, int startHeightDp, int endHeightDp, long duration) { |
| 27 | if (view.getAnimation() != null && view.getAnimation().hasStarted()) { |