main.xml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="horizontal"
  8. tools:context=".Main">
  9.  
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:layout_weight="1"
  14. android:orientation="vertical">
  15.  
  16. <Button
  17. android:id="@+id/button"
  18. style="@style/BotonCelestial"
  19. android:text="Roma" />
  20.  
  21. <Button
  22. android:id="@+id/button7"
  23. style="@style/BotonInfernal"
  24. android:text="Barcelona" />
  25.  
  26. <Button
  27. android:id="@+id/button2"
  28. style="@style/BotonCelestial"
  29. android:text="Atenas" />
  30. </LinearLayout>
  31.  
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:layout_weight="1"
  36. android:orientation="vertical">
  37.  
  38. <Button
  39. android:id="@+id/button8"
  40. style="@style/BotonInfernal"
  41. android:text="Berlín" />
  42.  
  43. <Button
  44. android:id="@+id/button3"
  45. style="@style/BotonCelestial"
  46. android:text="París" />
  47. </LinearLayout>
  48.  
  49. </LinearLayout>

Proinf.net