layout에서 버튼1개와 이미지뷰1개를 겹쳐놓고 버튼을 눌렀을경우 invisible 이미지가 visible로되어 저장되게 하는법을 알고싶습니다. 

해당버튼이있는 액티비티에서 어떤 구문을 사용하여야하는지 알고싶습니다.


레이아웃에 버튼과 이미지를 겹쳐놓았습니다.

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" 
    android:background="#eb773f"
    >

  <TextView
      android:id="@+id/title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Mobile Stamp"
      android:textColor="#552b0f"
      android:background="#00000000"
      android:layout_marginLeft="24dp"
      android:layout_marginTop="14dp"
      android:textSize="24dp"
      android:layout_centerHorizontal="true"
      /> 
   <Button
       android:id="@+id/stampline1"
       android:layout_width="55dp"
       android:layout_height="55dp"
       android:background="@drawable/stamp1"
       android:layout_below="@id/title"
       android:layout_marginTop="25dp"
       android:layout_marginLeft="4dp"
       />
   <ImageView
       android:id="@+id/stampview1"
       android:layout_width="55dp"
       android:layout_height="55dp"
       android:background="@drawable/stamp2"
       android:layout_below="@id/title"
       android:layout_marginTop="25dp"
       android:layout_marginLeft="4dp"
       android:visibility="invisible"
       />

읽어주셔서 감사합니다.