Created
July 14, 2020 16:55
-
-
Save fatihhcan/936b42db5a52fe4aa90dd5101afe62f7 to your computer and use it in GitHub Desktop.
This file contains 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
var operator = "*" | |
var oldCount="" | |
var newOperator=true | |
//operator butonlarımız | |
fun btn_Operator(view: View) { | |
var btn_Select= view as Button | |
when(btn_Select.id){ | |
btn_Div.id->{ | |
operator="/" | |
} | |
btn_Mul.id->{ | |
operator="*" | |
} | |
btn_Sub.id->{ | |
operator="-" | |
} | |
btn_Sum.id->{ | |
operator="+" | |
} | |
} | |
oldCount=dataView.text.toString() | |
newOperator=true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment