-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMainScreenLauncher.kt
34 lines (26 loc) · 1.18 KB
/
MainScreenLauncher.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
package com.opensooq.supernova.gligarexample
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main_launcher.*
class MainScreenLauncher : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main_launcher)
normal_launcher_button?.setOnClickListener {
startActivity(Intent(this@MainScreenLauncher, NormalActivityStarter::class.java))
}
start_launcher_button?.setOnClickListener {
startActivity(Intent(this@MainScreenLauncher, ActivityResultLauncher::class.java))
}
supported_files_button?.setOnClickListener {
startActivity(Intent(this@MainScreenLauncher, SupportedFilesLauncher::class.java))
}
pre_selected_files_button?.setOnClickListener {
startActivity(Intent(this@MainScreenLauncher, ActivityStarterLauncherV2::class.java))
}
custom_screen?.setOnClickListener {
startActivity(Intent(this@MainScreenLauncher, CustomToolbarScreen::class.java))
}
}
}