Context-detection API for Android developed as a university project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.xml 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="horizontal"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:weightSum="100">
  7. <RelativeLayout
  8. android:orientation="vertical"
  9. android:layout_height="fill_parent"
  10. android:layout_width="0px"
  11. android:layout_weight="70"
  12. android:padding="5px"
  13. android:id="@+id/left">
  14. <TextView
  15. android:id="@+id/text"
  16. android:layout_width="fill_parent"
  17. android:layout_height="wrap_content"
  18. android:text="Hello Android from NetBeans"/>
  19. <TextView
  20. android:id="@+id/viewcaption"
  21. android:layout_width="fill_parent"
  22. android:layout_height="wrap_content"
  23. android:layout_below="@id/text"
  24. android:layout_marginTop="10dip"
  25. android:text="View your uploaded data at:"/>
  26. </RelativeLayout>
  27. <RelativeLayout
  28. android:orientation="vertical"
  29. android:layout_height="fill_parent"
  30. android:layout_width="0px"
  31. android:padding="5px"
  32. android:layout_weight="30">
  33. <TextView
  34. android:id="@+id/caption"
  35. android:layout_width="fill_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_below="@id/text"
  38. android:gravity="center"
  39. android:text="Caption"/>
  40. <EditText
  41. android:id="@+id/entry"
  42. android:layout_width="fill_parent"
  43. android:layout_height="wrap_content"
  44. android:background="@android:drawable/editbox_background"
  45. android:layout_below="@id/caption"
  46. android:singleLine="true"/>
  47. <Button
  48. android:id="@+id/start"
  49. android:layout_width="fill_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_below="@id/entry"
  52. android:layout_marginTop="40dip"
  53. android:text="Start recording"/>
  54. <Button
  55. android:id="@+id/upload"
  56. android:layout_width="fill_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_below="@id/start"
  59. android:text="Upload data"/>
  60. </RelativeLayout>
  61. </LinearLayout>