From 5bb8991c98778262dfdf3e9714beef827121df56 Mon Sep 17 00:00:00 2001 From: himanshumahajan138 Date: Mon, 21 Oct 2024 17:13:50 +0000 Subject: [PATCH] Fixed Silly Mistake (MainActivity.kt) ; Fixes: #3550 --- .../kotlin/com/helloworld/app/MainActivity.kt | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 example/kotlinlib/android/1-hello-world/app/src/main/kotlin/com/helloworld/app/MainActivity.kt diff --git a/example/kotlinlib/android/1-hello-world/app/src/main/kotlin/com/helloworld/app/MainActivity.kt b/example/kotlinlib/android/1-hello-world/app/src/main/kotlin/com/helloworld/app/MainActivity.kt deleted file mode 100644 index f7e04a63de9..00000000000 --- a/example/kotlinlib/android/1-hello-world/app/src/main/kotlin/com/helloworld/app/MainActivity.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.helloworld.app - -import android.app.Activity -import android.os.Bundle -import android.widget.TextView -import android.view.Gravity -import android.view.ViewGroup.LayoutParams - -class MainActivity : Activity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - - // Create a new TextView - val textView = TextView(this) - - // Set the text to "Hello, World!" - textView.text = "Hello, World Kotlin!" - - // Set text size - textView.textSize = 32f - - // Center the text within the view - textView.gravity = Gravity.CENTER - - // Set layout parameters (width and height) - textView.layoutParams = LayoutParams( - LayoutParams.MATCH_PARENT, - LayoutParams.MATCH_PARENT - ) - - // Set the content view to display the TextView - setContentView(textView) - } -}