How to Go to Another Activity(switch Activity) Using KOTLIN
Tutorial Video: Codes Used in the Above Video XML Code(Activity_1) : <? xml version ="1.0" encoding ="utf-8" ?> <LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :orientation ="vertical" android :gravity ="center" android :layout_height ="match_parent" tools :context =".MainActivity" > <TextView android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text ="Activity 1" android :textSize ="50sp" tools :ignore ="MissingConstraints" /> <Button android :id ="@+id/btnGoTo2" android :layout_width ="wrap_content" android :layout...
