This repository has been archived on 2020-11-15. You can view files and clone it, but cannot push or open issues or pull requests.
hashTagItNow/app/src/main/java/com/eleith/hashtagit/HashTagItActivity.kt

27 lines
682 B
Kotlin

package com.eleith.hashtagit
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import kotlinx.android.synthetic.main.activity_hash_tag_it.*
class HashTagItActivity : AppCompatActivity() {
fun showToolbar(toggle: Boolean) {
if (toggle) {
supportActionBar?.show()
} else {
supportActionBar?.hide()
}
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_hash_tag_it)
setSupportActionBar(toolbar)
}
}