MainActivity.kt package com.cfsuman.kotlintutorials import android.app.Activity import android.content.Context import android.graphics.* import android.os.Bundle import android.widget.* import java.io.IOException class MainActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) // get the widgets reference from XML layout val imageView = findViewById<ImageView>(R.id.imageView) val imageView2 = findViewById<ImageView>(R.id.imageView2) val textView = findViewById<TextView>(R.id.textView) val seekBarRed = findViewById<SeekBar>(R.id.seekBarRed) val seekBarGreen = findViewById<SeekBar>(R.id.seekBarGreen) val seekBarBlue = findViewById<SeekBar>(R.id.seekBarBlue) val tvIntensity = findViewById<TextView>(R.id.tvIntensity) // get the bitmap from asset...
Android, .NET C#, Flutter, and Many More Programming tutorials.