Stap 3: Schrijf uw xml
< RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android"xmlns:tools = "http://schemas.android.com/tools"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
Android: paddingBottom = "
Android: paddingLeft = "
Android: paddingRight = "
Android: paddingTop = "
tools: context = ". MainActivity">
< TextView
Android: id = "
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: layout_gravity = "center"
Android: tekst = "Arduino eenvoudige automatisering"
Android: textAppearance = "? Androïde: attr / textAppearanceLarge" / >
< LinearLayout
Android: id = "
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: layout_alignLeft = "
Android: layout_below = "
Android: richting = "horizontale" >
< Button
Android: id = "
Android: layout_width = "100dp"
Android: layout_height = "100dp"
Android: layout_weight = "0.39"
Android: tekst = "LED 1 ON" / >
< Button
Android: id = "
Android: layout_width = "100dp"
Android: layout_height = "100dp"
Android: layout_weight = "0.39"
Android: tekst = "LED 1 OFF" / >
< / LinearLayout >
< LinearLayout
Android: id = "
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: layout_alignLeft = "
Android: layout_alignRight = "
Android: layout_below = "
Android: richting = "horizontale" >
< Button
Android: id = "
Android: layout_width = "100dp"
Android: layout_height = "100dp"
Android: layout_weight = "0.39"
Android: tekst = "LED 2 ON" / >
< Button
Android: id = "
Android: layout_width = "100dp"
Android: layout_height = "100dp"
Android: layout_weight = "0.39"
Android: tekst = "LED 2 OFF" / >
< / LinearLayout >
< / RelativeLayout >