0

I created a ScrollView programmatically

private fun showSpinner() {
    /* SCROllL VIEW */
    var linearLayout: LinearLayout? = null
    linearLayout = findViewById(R.id.linear1)
    val layoutInflater = LayoutInflater.from(this)
    
    // Create the view...
    val view: View = layoutInflater.inflate(R.layout.scroll_bckgrnd, linearLayout, false)
    ...
    ...
}

How do I close it programmatically ?

I didn't found something on the Internet

Every idea welcome and appreciate.

LastCard1440
  • 1
  • 1
  • 2

1 Answers1

0

set the visibility to GONE, if that is what you need