以下代码将更改downBar(ImageView)的大小和位置 在这段代码中,可以添加TranslateAnimation吗?
private void downBarResize(int resId) {
View basic = mContent.findViewById(resId);
LayoutParams barParams = (LayoutParams) downBar.getLayoutParams();
barParams.width = basic.getWidth();
barParams.addRule(RelativeLayout.ALIGN_LEFT, resId);
downBar.setLayoutParams(barParams);
}