Answer the question
In order to leave comments, you need to log in
ActivityNotFoundException, what to do?
MainActivity.kt :
package com.example.app_calc
import android.animation.ObjectAnimator
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.calculatorapp.Main2Activity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
//Code
but_open.setOnClickListener {
val intent = Intent(this, Main2Activity::class.java)
startActivity(intent)
}
ObjectAnimator.ofFloat(textView6, "translationX", 1000f).apply {
duration = 2000
start()
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question