Skip to content

Instantly share code, notes, and snippets.

@Bruno125
Created August 4, 2017 04:39
Show Gist options
  • Save Bruno125/4fee565e438e153243669fd164be3ad8 to your computer and use it in GitHub Desktop.
Save Bruno125/4fee565e438e153243669fd164be3ad8 to your computer and use it in GitHub Desktop.
package com.example.pack.two
// some imports
import com.example.pack.one.MyClass
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val myClass = MyClass()
myClass.setListener(object: MyClass.Listener {
override fun foo() {
}
})
myClass.run()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment