package in.gsmx.finance import android.app.Activity import android.os.Bundle import android.graphics.Typeface import android.view.Gravity import android.view.ViewGroup import android.widget.Button import android.widget.LinearLayout import android.widget.TextView class MainActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val root = LinearLayout(this).apply { orientation = LinearLayout.VERTICAL gravity = Gravity.CENTER setPadding(32, 40, 32, 40) setBackgroundColor(0xFF07110D.toInt()) } val title = TextView(this).apply { text = "GSMX Finance" textSize = 30f setTextColor(0xFF55E39A.toInt()) typeface = Typeface.DEFAULT_BOLD gravity = Gravity.CENTER } val subtitle = TextView(this).apply { text = "Multi-shop finance management" textSize = 16f setTextColor(0xFFFFFFFF.toInt()) gravity = Gravity.CENTER setPadding(0, 12, 0, 28) } val note = TextView(this).apply { text = "Customer records • EMI schedules • Payments • Support\n\nThis starter does not lock or restrict devices." textSize = 15f setTextColor(0xFFD4E5DC.toInt()) gravity = Gravity.CENTER } val button = Button(this).apply { text = "API setup required" isEnabled = false } root.addView(title, LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)) root.addView(subtitle, LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)) root.addView(note, LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)) root.addView(button) setContentView(root) } }