如何使用相册艺术使图像隐藏并再次可见?android xml

如何使用相册艺术使图像隐藏并再次可见?android xml,android,android-layout,Android,Android Layout,我不知道如何在组中隐藏某些图像,我目前使用此组设置 <RelativeLayout android:layout_width="88.0px" android:layout_height="95.0px" > <ImageView android:layout_width="67.0px" android:layout_height="75.0px" android:src="@drawable/coverart" android:layout_marginLef

我不知道如何在组中隐藏某些图像,我目前使用此组设置

 <RelativeLayout  android:layout_width="88.0px" android:layout_height="95.0px"  >
    <ImageView android:layout_width="67.0px" android:layout_height="75.0px" android:src="@drawable/coverart" android:layout_marginLeft="16.0px" android:layout_marginTop="10.0px" android:scaleType="fitXY" />
    <ImageButton android:id="@id/albumArt" android:visibility="gone" android:layout_width="67.0px" android:layout_height="75.0px" android:layout_marginLeft="16.0px" android:layout_marginTop="10.0px" android:scaleType="fitXY" android:adjustViewBounds="true"  />
    <ImageView android:layout_width="88.0px" android:layout_height="95.0px" android:src="@drawable/peel" android:scaleType="fitXY" />
 </RelativeLayout>

现在,这会在暂停时隐藏相册艺术,但我不知道如何隐藏覆盖。我所做的每件事都会把整个团队隐藏起来。我知道一定有办法隐藏整个团队,然后像真正的专辑艺术一样重新播放


任何帮助都会很好,谢谢。

为什么不尝试隐藏整个布局,而不是只隐藏元素呢。暂停时隐藏布局,并在需要时将其恢复

 <RelativeLayout  android:layout_width="88.0px" android:layout_height="95.0px"  android:visibility="gone">
<ImageView android:layout_width="67.0px" android:layout_height="75.0px" android:src="@drawable/coverart" android:layout_marginLeft="16.0px" android:layout_marginTop="10.0px" android:scaleType="fitXY" />
<ImageButton android:id="@id/albumArt"  android:layout_width="67.0px" android:layout_height="75.0px" android:layout_marginLeft="16.0px" android:layout_marginTop="10.0px" android:scaleType="fitXY" android:adjustViewBounds="true"  />
<ImageView android:layout_width="88.0px" android:layout_height="95.0px" android:src="@drawable/peel" android:scaleType="fitXY" />


使用framelayout完成完整的操作…最好忽略静态值..我尝试过,但整个布局保持隐藏状态,在播放时不会出现:(这是我尝试的第一件事)因此在播放时,您必须将其可见性从“消失”更改为“可见”.你这样做了吗?不完全确定你的意思吗?我是否已将相册艺术的可见性更改回可见?如果是,则为是。如果还有其他内容需要更改,则为否。