Skip to content

Instantly share code, notes, and snippets.

@iciakky
Created February 13, 2017 15:11
Show Gist options
  • Save iciakky/2d1f39e7ff7cc384109b8119c11e0bbc to your computer and use it in GitHub Desktop.
Save iciakky/2d1f39e7ff7cc384109b8119c11e0bbc to your computer and use it in GitHub Desktop.
detechedTwice
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import trikita.anvil.RenderableView
import trikita.anvil.recyclerview.v7.RecyclerViewv7DSL.recyclerView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(RenderableRecyclerView())
}
inner class RenderableRecyclerView() : RenderableView(this@MainActivity){
override fun view() {
recyclerView { }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment