Android 图像地图上的图像箭头
嘿,伙计们,我正在做一个项目,我需要在平面图上显示箭头,引导人们逃跑。箭头仅在有火时显示。现在我插入的平面图是图像,箭头也是图像。当有火时,我将可见性设置为true,在没有火的地方,可行性消失,这是正确的方法吗?而且,当我用我的手机运行xml文件时,它在xml文件上的箭头位置也不同Android 图像地图上的图像箭头,android,Android,嘿,伙计们,我正在做一个项目,我需要在平面图上显示箭头,引导人们逃跑。箭头仅在有火时显示。现在我插入的平面图是图像,箭头也是图像。当有火时,我将可见性设置为true,在没有火的地方,可行性消失,这是正确的方法吗?而且,当我用我的手机运行xml文件时,它在xml文件上的箭头位置也不同 可以使用可见性来显示/隐藏-确保它对齐需要我们查看您的layout.xml文件(包括此文件)@Booger,我已经添加了,谢谢您的时间来帮助您有什么想法?我仍然无法很好地解决使用可见性来显示/隐藏的问题-确保它对
可以使用可见性来显示/隐藏-确保它对齐需要我们查看您的layout.xml文件(包括此文件)@Booger,我已经添加了,谢谢您的时间来帮助您有什么想法?我仍然无法很好地解决使用可见性来显示/隐藏的问题-确保它对齐需要我们查看您的layout.xml文件(包括此文件)@Booger,我已经添加了,谢谢您的时间来帮助任何想法?我还是解决不了
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/imageView"
android:background="@drawable/a1"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:id="@+id/image1"
android:background="@drawable/arrow"
android:layout_marginTop="43dp"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="26dp"
android:layout_marginEnd="26dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Button"
android:id="@+id/button"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="75dp"
android:layout_marginStart="75dp"
android:layout_marginBottom="190dp"
android:onClick="button1" />
</RelativeLayout>