Step 1: Download Android Studio
1. Go to the official website: [Link]
2. Click Download Android Studio.
3. Accept the terms and conditions.
4. Download the version for your OS (Windows, macOS, Linux).
Step 2: Run the Installer
Windows: Run the .exe file you downloaded.
Step 3: Follow Setup Wizard
1. Launch Android Studio.
2. The setup wizard will start automatically.
3. Select Standard installation (recommended).
4. Android Studio will download the required SDK components.
Step 4: Configure Android SDK
The wizard will automatically install the latest Android SDK.
Ensure that Android Virtual Device (AVD) support is checked if you want to
use an emulator.
Step 5: Finish Setup
Click Finish when installation is complete.
Android Studio will start.
Step 6: Create a New Project
1. Click “New Project”.
2. Select a template (like Empty Activity).
3. Name your project, choose Kotlin or Java, and select minimum SDK.
4. Click Finish.
Now Android Studio is ready, and you can start building Android apps.
1. Development of Hello World Application
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textSize="24sp"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main) // Load layout with Hello World
}
}
2. Create an application that takes the name from a text box and shows hello
message along with the name entered in text box, when the user clicks the OK
button.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
xmlns:tools="[Link]
android:orientation="vertical"
android:padding="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
android:hint="Enter Name"
android:minHeight="48dp" />
<Button
android:text="OK"
android:onClick="showHello"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
}
fun showHello(v: View) {
val name = findViewById<EditText>([Link])
val result = findViewById<TextView>([Link])
[Link] = "Hello " + [Link]
}
}
3. Create a screen that has input boxes for User Name, Password, Address, Gender
(radio buttons for male and female), Age (numeric) and a Submit button. On
clicking the submit button, print all the data below the Submit Button (use any
layout).
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etName"
android:hint="User Name"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/etPassword"
android:hint="Password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/etAddress"
android:hint="Address"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RadioGroup
android:id="@+id/rgGender"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/rbMale"
android:text="Male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<RadioButton
android:id="@+id/rbFemale"
android:text="Female"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RadioGroup>
<EditText
android:id="@+id/etAge"
android:hint="Age"
android:inputType="number"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/btnSubmit"
android:text="Submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/tvResult"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"/>
</LinearLayout>
</ScrollView>
[Link]
package [Link]
import [Link]
import [Link].*
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val etName = findViewById<EditText>([Link])
val etPassword = findViewById<EditText>([Link])
val etAddress = findViewById<EditText>([Link])
val rgGender = findViewById<RadioGroup>([Link])
val etAge = findViewById<EditText>([Link])
val btnSubmit = findViewById<Button>([Link])
val tvResult = findViewById<TextView>([Link])
[Link] {
val name = [Link]()
val password = [Link]()
val address = [Link]()
val age = [Link]()
val genderId = [Link]
val gender = if (genderId != -1) findViewById<RadioButton>(genderId).text
else "Not selected"
[Link] = "Name: $name\nPassword: $password\nAddress:
$address\nGender: $gender\nAge: $age"
}
}
}
4. Design an android application to create page using Intent and one
Button and pass the Values from one Activity to second Activity.
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
val btn = Button(this).apply { text = "Go to Second" }
setContentView(btn)
[Link] {
val intent = Intent(this, SecondActivity::[Link])
[Link]("msg", "Hello from First")
startActivity(intent)
}
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/buttonSend"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Go to Second Activity" />
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
class SecondActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
val msg = [Link]("msg")
val tv = TextView(this).apply { text = msg }
setContentView(tv)
}
}
Activity_second.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Message will appear here" />
</LinearLayout>
5. Design an android application Send SMS using Intent.
Activity_second.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Send SMS" />
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
findViewById<Button>([Link].button1).setOnClickListener {
val smsIntent = Intent(Intent.ACTION_SENDTO).apply {
data = [Link]("smsto:5554") // Replace with desired number
putExtra("sms_body", "hai") // Message content
}
startActivity(smsIntent)
}
}
}
6. Design an android application Using Radio button.
[Link]
package [Link]
import [Link]
import [Link]
import [Link].*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val genderGroup = findViewById<RadioGroup>([Link])
val submitBtn = findViewById<Button>([Link])
val result = findViewById<TextView>([Link])
[Link] {
val selectedId = [Link]
if (selectedId != -1) {
val radio = findViewById<RadioButton>(selectedId)
[Link] = "Selected: ${[Link]}"
} else {
[Link] = "No option selected"
}
}
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<RadioGroup
android:id="@+id/genderGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radioMale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Male" />
<RadioButton
android:id="@+id/radioFemale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Female" />
</RadioGroup>
<Button
android:id="@+id/submitBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit"
android:layout_marginTop="16dp" />
<TextView
android:id="@+id/result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" />
</LinearLayout>
7. Design an android application for menu.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<TextView
android:id="@+id/tvHello"
android:text="Hello world!"
android:textSize="18sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"/>
<Button
android:id="@+id/btnMenu"
android:text="Show Menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val btnMenu = findViewById<Button>([Link])
[Link] { view ->
val popup = PopupMenu(this, view)
[Link]("Item 1")
[Link]("Item 2")
[Link]("Item 3")
[Link] { item ->
[Link](this, "${[Link]} clicked",
Toast.LENGTH_SHORT).show()
true
}
[Link]()
}
}
}
8. Create a user registration application that stores the user details in a
databasetable.
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
lateinit var db: DBHelper
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
db = DBHelper(this)
val name = findViewById<EditText>([Link])
val email = findViewById<EditText>([Link])
val password = findViewById<EditText>([Link])
val submit = findViewById<Button>([Link])
val result = findViewById<TextView>([Link])
[Link] {
val n = [Link]()
val e = [Link]()
val p = [Link]()
if([Link]() && [Link]() && [Link]()) {
val ok = [Link](n, e, p)
[Link] = if(ok) "Registered Successfully" else "Registration Failed"
} else {
[Link] = "Please fill all fields"
}
}
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/name"
android:hint="Name"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/email"
android:hint="Email"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/password"
android:hint="Password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/submit"
android:text="Register"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class DBHelper(context: Context) : SQLiteOpenHelper(context, "TableDB", null, 1)
{
override fun onCreate(db: SQLiteDatabase) {
[Link]("CREATE TABLE Users(id INTEGER PRIMARY KEY
AUTOINCREMENT, name TEXT, email TEXT, password TEXT)")
}
override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
[Link]("DROP TABLE IF EXISTS Users")
onCreate(db)
}
fun insertUser(name: String, email: String, password: String): Boolean {
val cv = ContentValues()
[Link]("name", name)
[Link]("email", email)
[Link]("password", password)
return [Link]("Users", null, cv) != -1L
}
}
9. Create sample application with login module. (Check username and password),
validate it for login screen or alert the user with a Toast.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/username"
android:hint="Username"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/password"
android:hint="Password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/login"
android:text="Login"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val username = findViewById<EditText>([Link])
val password = findViewById<EditText>([Link])
val login = findViewById<Button>([Link])
// Hardcoded credentials
val validUsername = "admin"
val validPassword = "1234"
[Link] {
val u = [Link]()
val p = [Link]()
if(u == validUsername && p == validPassword) {
[Link](this, "Login Successful", Toast.LENGTH_SHORT).show()
} else {
[Link](this, "Invalid Username or Password",
Toast.LENGTH_SHORT).show()
}
}
}
}
[Link] and validate a login application using username as Email ID else login
button must remain disabled.
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val email = findViewById<EditText>([Link])
val password = findViewById<EditText>([Link])
val login = findViewById<Button>([Link])
// Enable button only if email is valid
[Link](object : TextWatcher {
override fun afterTextChanged(s: Editable?) {
[Link] =
Patterns.EMAIL_ADDRESS.matcher([Link]()).matches()
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int,
after: Int) {}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int,
count: Int) {}
})
[Link] {
[Link](this, "Login Clicked", Toast.LENGTH_SHORT).show()
}
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/email"
android:hint="Email"
android:inputType="textEmailAddress"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/password"
android:hint="Password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/login"
android:text="Login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"/>
</LinearLayout>
[Link] a Login application and open a browser with any one search engine.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:orientation="vertical"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/username"
android:hint="Username"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/password"
android:hint="Password"
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/login"
android:text="Login"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val u = findViewById<EditText>([Link])
val p = findViewById<EditText>([Link])
val b = findViewById<Button>([Link])
[Link] {
if([Link]() == "admin" && [Link]() == "1234") {
val i = Intent(Intent.ACTION_VIEW,
[Link]("[Link]
startActivity(i)
} else {
[Link](this, "Invalid Username or Password",
Toast.LENGTH_SHORT).show()
}
}
}
}
[Link] an application to change screen color as per the user choice from a menu.
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
val root = findViewById<LinearLayout>([Link])
findViewById<Button>([Link]).setOnClickListener {
[Link]([Link]) }
findViewById<Button>([Link]).setOnClickListener {
[Link]([Link]) }
findViewById<Button>([Link]).setOnClickListener {
[Link]([Link]) }
findViewById<Button>([Link]).setOnClickListener {
[Link]([Link]) }
findViewById<Button>([Link]).setOnClickListener {
[Link]([Link]) }
}
}
activity_main.xml
<LinearLayout xmlns:android="[Link]
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="16dp"
android:background="#FFFFFF">
<Button
android:id="@+id/red"
android:text="Red"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
<Button
android:id="@+id/green"
android:text="Green"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
<Button
android:id="@+id/blue"
android:text="Blue"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
<Button
android:id="@+id/yellow"
android:text="Yellow"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
<Button
android:id="@+id/cyan"
android:text="Cyan"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
</LinearLayout>
[Link] a background application that will open activity on specific time.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alarm Set! TargetActivity will open at 08:12"
android:textSize="18sp"/>
</LinearLayout>
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link].*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
// Set alarm at 14:30
val calendar = [Link]().apply {
set(Calendar.HOUR_OF_DAY, 20)
set([Link], 12)
set([Link], 0)
}
val intent = Intent(this, TargetActivity::[Link])
val pending = [Link](this, 0, intent,
PendingIntent.FLAG_IMMUTABLE)
val alarmManager = getSystemService(ALARM_SERVICE) as AlarmManager
[Link](AlarmManager.RTC_WAKEUP, [Link],
pending)
}
}
[Link]
package [Link]
import [Link]
import [Link]
class TargetActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].simple_list_item_1)
}
}
[Link] a background application that will open activity on specific time.
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link].*
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
// Schedule dialog at 14:30
val calendar = [Link]().apply {
set(Calendar.HOUR_OF_DAY, 20)
set([Link], 32)
set([Link], 0)
}
val delay = [Link] - [Link]()
if (delay > 0) {
Handler([Link]()).postDelayed({
[Link](this)
.setTitle("Scheduled Alert")
.setMessage("This dialog appeared at the scheduled time!")
.setPositiveButton("OK", null)
.show()
}, delay)
}
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dialog will appear at 08:32"
android:textSize="18sp"/>
</LinearLayout>
[Link] an android application using Fragments
[Link]
package [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]
class MainActivity : AppCompatActivity() {
var showingFragmentOne = true
override fun onCreate(savedInstanceState: Bundle?) {
[Link](savedInstanceState)
setContentView([Link].activity_main)
// Load FragmentOne by default
[Link]()
.replace([Link], FragmentOne())
.commit()
// Button to switch fragments
val btnSwitch = findViewById<Button>([Link])
[Link] {
val fragment: Fragment = if (showingFragmentOne) FragmentTwo() else
FragmentOne()
[Link]()
.replace([Link], fragment)
.commit()
showingFragmentOne = !showingFragmentOne
}
}
// First fragment
class FragmentOne : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
val tv = TextView(context)
[Link] = "Hello My name is Aleena "
[Link] = 24f
[Link] = [Link]
return tv
}
}
// Second fragment
class FragmentTwo : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
val tv = TextView(context)
[Link] = "My Roll no is 103712"
[Link] = 24f
[Link] = [Link]
return tv
}
}
}
Activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<Button
android:id="@+id/btnSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Switch Fragment" />
<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"/>
</LinearLayout>