Skip to content

Instantly share code, notes, and snippets.

@rpandey1234
Created November 26, 2020 19:03
Show Gist options
  • Select an option

  • Save rpandey1234/db657164671e7168e773d158fdd2c4fc to your computer and use it in GitHub Desktop.

Select an option

Save rpandey1234/db657164671e7168e773d158fdd2c4fc to your computer and use it in GitHub Desktop.
Update of Tippy Project to Android Studio 4.1 (no more kotlin android extensions)
class MainActivity : AppCompatActivity() {
// ADD VIEW VARIABLE DECLARATIONS HERE
private lateinit var tvTipPercent: TextView
private lateinit var etBase: EditText
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// SET THE VIEWS HERE
tvTipPercent = findViewById(R.id.tvTipPercent)
etBase = findViewById(R.id.etBase)
// other code goes here...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment