activity_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="vertical"
  8. tools:context=".MainActivity">
  9.  
  10. <TextView
  11. android:id="@+id/textView"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:text="Caballito de mar"
  15. android:textSize="30sp" />
  16.  
  17. <ImageView
  18. android:id="@+id/imageView"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:layout_marginBottom="50dp"
  22. android:layout_marginTop="50dp"
  23. app:srcCompat="@drawable/seahorse" />
  24.  
  25. <Button
  26. android:id="@+id/button"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:text="PĂșlsame" />
  30. </LinearLayout>

Proinf.net