如何使背景更大,然后屏幕和旋转?

时间:2014-02-06 16:58:23

标签: android animation

想要为我的活动制作空间背景并开始慢慢旋转,但我坚持认为: screenshot (http://postimg.org/)

我需要的效果need如果添加XML文件我可以获得

android:scaleY="2"
android:scaleX="2"

但它不会起作用,当应用程序启动时,android缩小图片。

伙计们,真的需要你的帮助,我在机器人工作了4天并且英语不好

---- --- ADDED

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">


  <ImageView android:id="@+id/image"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:src="@drawable/backgroundd"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"/>

</RelativeLayout>

1 个答案:

答案 0 :(得分:1)

我还没试过这个,我不确定它是最好的解决方案,但是你可以设置一个负面的android:layout_marginon图像吗?

android:layout_margin="-100dp"

请点击此处了解详情:How to get a view larger than its parent?

此外,发布完整的XML可以帮助我们更多地了解您如何设置布局。

相关问题