activity_qcm.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. tools:context="app.mar.activities.QuestionActivity">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical">
  12. <FrameLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:layout_weight="1">
  16. <ImageView
  17. android:id="@+id/iv_img"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:src="@drawable/bscanner_tap" />
  21. </FrameLayout>
  22. <FrameLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:layout_weight="1">
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. android:orientation="vertical">
  30. <TextView
  31. android:id="@+id/tv_question"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:editable="false"
  35. android:text="Comment s'appelait le joli cheval blanc d'Henri IV ?"
  36. android:textSize="18sp" />
  37. <RadioGroup
  38. android:id="@+id/rg_qcm"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent">
  41. </RadioGroup>
  42. </LinearLayout>
  43. </FrameLayout>
  44. <Button
  45. android:id="@+id/btn_ok"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_weight="0"
  49. android:onClick="onValid"
  50. android:text="Valider" />
  51. </LinearLayout>
  52. </LinearLayout>