Fundamentals-of-Android

Kotlin and XML codes from basic for Android app development

Topics :

1. Hello World App:

App to display Hello World on screen.

  • TextView
  • TextColor
  • Background Color
  • TextStyle
  • TextSize

XML Code

Kotlin Code

Output Screenshot

2. TextViews and Submit Button App:

App to display Text and a button to show Toast message on screen.

  • TextView
  • TextColor
  • Background Color
  • Button

XML Code

Kotlin Code

Output Screenshot

3. Simple Addition Calculator App:

App to add two numbers and show the result on screen.

  • EditText
  • TextView
  • Button

XML Code

Kotlin Code

Output Screenshot

4. Simple Addition, Subtraction, Multiplication & Division Calculator App:

App that can add, subtract, multipy & divide two numbers and show the result on screen.

  • EditText
  • TextView
  • Button
  • Toast Message

XML Code

Kotlin Code

Output Screenshot

5. Simple Form App:

App that takes different inputs from user and show it on the screen.

  • EditText
  • TextView
  • Button

XML Code

Kotlin Code

Output Screenshot

6. Android Activity Lifecycle:

shows Logs in Logcat section about start, stop, pause, resume etc.

  • Override Methods

XML Code

Kotlin Code

Output Screenshot

7. Radio-Button Implementation:

App having radioButtons that shows the text of selected option when submit button clicked.

  • RadioGroup
  • RadioButton
  • OnClickListener

XML Code

Kotlin Code

Output Screenshot

8. Grid-Layout Implementation:

App having Image-Button in the form of grid.

  • GridLayout
  • ImageButton

XML Code

Kotlin Code

Output Screenshot

GitHub

View Github