2018.10.26

2018.10.26

btn_string.setOnClickListener{
            var str: String = ""
            var i: Int = 0
            while(i<string_array.size){
                str = str + string_array[i] + ", "
                i++
            }
            tv_item_list.text = str
        }

        btn_int.setOnClickListener{
            var str: String = ""
            var i:Int = 0
            while(i<int_array.size){
                str = str + int_array[i].toString() + ", "
                i++
            }
            tv_item_list.setText(str)
        }

        btn_boolean.setOnClickListener{
            var str: String = ""
            var i: Int = 0
            while(i<boolean_array.size){
                str = str + boolean_array[i] + ", "
                i++
            }
            tv_item_list.setText(str)
        }

        btn_char.setOnClickListener {
            var str: String = ""
            var i: Int = 0
            while(i<char_array.size){
                str = str + char_array[i] + ", "
                i++
            }
            tv_item_list.text = str
        }

        btn_double.setOnClickListener {
            var str: String = ""
            var i: Int = 0
            while(i<double_array.size){
                str = str + double_array[i] + ", "
                i++
            }
            tv_item_list.text = str
        }

2018.10.26_第1张图片

你可能感兴趣的:(琉璃神社)