Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MainActivity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
- recyclerView.apply {
- adapter = TagAdapter(tagList)
- layoutManager = LinearLayoutManager(this@MainActivity)
- }
- }
- private val tagList: MutableList<Tag>
- get() {
- return mutableListOf(
- Tag("Exercise"),
- Tag("Be Cool"),
- Tag("Floss"),
- Tag("Read the Sign"),
- Tag("Meditation"),
- Tag("Be Cool in an awesome way"),
- Tag("Go Crazy")
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement