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
Raw Normal View History

package com.eleith.hashtagit
2019-01-22 00:04:50 +00:00
import android.os.Bundle
2019-01-22 00:28:05 +00:00
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
2019-01-25 13:35:48 +00:00
import kotlinx.android.synthetic.main.activity_hash_tag_it.*
2019-01-22 00:04:50 +00:00
class HashTagItActivity : AppCompatActivity() {
2019-01-25 13:35:48 +00:00
fun showToolbar(toggle: Boolean) {
if (toggle) {
supportActionBar?.show()
} else {
supportActionBar?.hide()
2019-01-25 13:35:48 +00:00
}
}
2019-01-22 00:04:50 +00:00
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_hash_tag_it)
2019-01-25 13:35:48 +00:00
setSupportActionBar(toolbar)
2019-01-22 00:28:05 +00:00
}
2019-01-22 00:04:50 +00:00
}