/documentation/examples/nihaoworld/res/layout/main.xml

http://eyes-free.googlecode.com/ · XML · 31 lines · 26 code · 5 blank · 0 comment · 0 complexity · 5efa96f6dbaeb9a919b246f7ccef2516 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. >
  7. <TextView
  8. android:layout_width="fill_parent"
  9. android:layout_height="wrap_content"
  10. android:textSize="20sp"
  11. android:text="@string/instructions"
  12. />
  13. <Spinner android:id="@+id/list"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_marginTop ="40px"
  17. android:entries="@array/languages"
  18. />
  19. <Button android:id="@+id/sayhello"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_alignParentRight="true"
  23. android:layout_marginTop ="60px"
  24. android:textSize="30sp"
  25. android:text="Speak" />
  26. </LinearLayout>