-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLibraryMain.kt
49 lines (35 loc) · 1.35 KB
/
LibraryMain.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.example.iot_assignment
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import kotlinx.android.synthetic.main.activity_library_main.*
class LibraryMain : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_library_main)
soundmeter.setOnClickListener{
val intent = Intent(this, SmartNoiseDetector::class.java)
startActivity(intent)
}
booktrolley.setOnClickListener{
val intent = Intent(this, SmartBookTrolley::class.java)
startActivity(intent)
}
door.setOnClickListener {
val intent = Intent(this, SmartDiscussionRoomUnlock::class.java)
startActivity(intent)
}
reporting.setOnClickListener {
val intent = Intent(this, Reporting::class.java)
startActivity(intent)
}
val toolbar: TextView = findViewById(R.id.toolbar_title)
toolbar.setText("Smart Library Module")
val back: ImageView = findViewById(R.id.arrow_back_icon)
back.setOnClickListener {
onBackPressed()
}
}
}