Created
May 22, 2021 11:46
-
-
Save ibrahim4851/2154c67e857e383bf49cffc0900437e4 to your computer and use it in GitHub Desktop.
MainActivityVolley
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private lateinit var getarray: Button | |
private lateinit var getobject: Button | |
private lateinit var postobject: Button | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
getarray = findViewById(R.id.getarray) | |
getobject = findViewById(R.id.getobject) | |
postobject = findViewById(R.id.postobject) | |
click() | |
} | |
fun click(){ | |
getarray.setOnClickListener { | |
val intent = Intent(this, GetArray::class.java) | |
startActivity(intent) | |
} | |
getobject.setOnClickListener { | |
val intent = Intent(this, GetObject::class.java) | |
startActivity(intent) | |
} | |
postobject.setOnClickListener { | |
val intent = Intent(this, PostObject::class.java) | |
startActivity(intent) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment