fork download
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://s...content-available-to-author-only...d.com/apk/res/android"
  4. android:background="@drawable/white"
  5. android:orientation="vertical"
  6. android:layout_width="fill_parent"
  7. android:layout_height="fill_parent"
  8. >
  9. <TextView
  10. android:id="@+id/myTextView1"
  11. android:layout_width="fill_parent"
  12. android:layout_height="wrap_content"
  13. android:textColor="@drawable/blue"
  14. android:text="@string/hello"
  15. />
  16.  
  17. <SurfaceView
  18. android:id="@+id/mSurfaceView1"
  19. android:visibility="visible"
  20. android:layout_width="240px"
  21. android:layout_height="180px">
  22. </SurfaceView>
  23.  
  24. <LinearLayout
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:orientation="horizontal" >
  28.  
  29.  
  30.  
  31. android:id="@+id/myButton1"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/str_button1" />
  35.  
  36. android:id="@+id/myButton2"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="@string/str_button2" />
  40.  
  41. android:id="@+id/myButton3"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:text="@string/str_take_picture" />
  45. </LinearLayout>
  46.  
  47. <SeekBar
  48. android:id="@+id/seekBar1"
  49. android:layout_width="174dp"
  50. android:layout_height="wrap_content" />
  51.  
  52. <TextView
  53. android:id="@+id/textView1"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_alignParentLeft="true"
  57. android:layout_below="@+id/seekBar1"
  58. />
  59.  
  60. android:id="@+id/button1"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:text="@string/light" />
  64.  
  65. <ImageView
  66. android:id="@+id/myImageView1"
  67. android:layout_width="240px"
  68. android:layout_height="180px" />
  69.  
  70. </LinearLayout>
  71.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
<?xml version="1.0" encoding="utf-8"?>
^
1 error
stdout
Standard output is empty