You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.xml 1.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <LinearLayout
  7. android:orientation="horizontal"
  8. android:layout_width="fill_parent"
  9. android:layout_height="wrap_content">
  10. <Button
  11. android:id="@+id/buttonImage"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:text="选图" />
  15. <Button
  16. android:id="@+id/buttonDetect"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:text="识别-cpu" />
  20. <Button
  21. android:id="@+id/buttonDetectGPU"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:text="识别-gpu" />
  25. </LinearLayout>
  26. <TextView
  27. android:id="@+id/infoResult"
  28. android:layout_width="fill_parent"
  29. android:layout_height="wrap_content"
  30. android:text="" />
  31. <ImageView
  32. android:id="@+id/imageView"
  33. android:layout_width="fill_parent"
  34. android:layout_height="fill_parent"
  35. android:layout_weight="1" />
  36. </LinearLayout>