title: Long press function in kotlin
body: <p>I am trying to convert a gif when I realised that it should be normal. Code in Kotlin below. I have tried using long press but when I am releasing, its not returning to image.</p>
  
  <pre><code>var walk1: ImageView?=null
  var walk2: ImageView?=null
   walk1=findViewById(R.id.walky)
          walk2=findViewById(R.id.walky1)
  
          walk1?.setOnLongClickListener { walk2?.visibility = View.VISIBLE
             walk2?.setOnClickListener(){ walk2?.visibility=View.GONE
                return@setOnTouchListener true`enter code here`
             }
              return@setOnLongClickListener true
  
          }
  </code></pre>