在翻译时增加图像的显示部分

时间:2015-01-19 08:19:05

标签: android android-imageview translate-animation

我有一张图片,部分图片在启动画面时看不到。为实现这一目标,我使用了

android:paddingLeft="-18dp"

我还有一个动画,可以将图像移动到屏幕的中心(不完全是中心)

<translate
    android:interpolator="@android:anim/accelerate_interpolator"
    android:toXDelta="20%p"
    android:duration="1000"
    android:repeatCount="2"
/>

由于图像在启动时未看到某些部分,因此动画只会移动可见部分。

如何在翻译时增加图像的显示部分?

为了使自己清楚,我正在添加图片来解释:

完整图片:

enter image description here

启动屏幕:

enter image description here

会发生什么:

enter image description here

我想要的是什么:

enter image description here

0 个答案:

没有答案