Advertisement
Milo510

XML

Feb 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 9.35 KB | None | 0 0
  1. <ScrollView
  2.     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_height="match_parent"
  6.     android:layout_width="match_parent"
  7.     >
  8.  
  9.  
  10.  
  11.     <LinearLayout
  12.         android:layout_width="wrap_content"
  13.         android:layout_height="wrap_content"
  14.         android:orientation="vertical"
  15.         tools:context=".MainActivity">
  16.  
  17.         <TextView
  18.             android:id="@+id/header"
  19.             android:layout_width="wrap_content"
  20.             android:layout_height="match_parent"
  21.             android:fontFamily="monospace"
  22.             android:textAllCaps="true"
  23.             android:layout_gravity="center"
  24.             android:textStyle="bold"
  25.             android:text="Financial Terms Quiz"
  26.             android:layout_margin="8dp"
  27.             android:textSize="20sp"/>
  28.  
  29.  
  30.         <TextView
  31.             android:id="@+id/intro"
  32.             android:fontFamily="monospace"
  33.             android:layout_margin="8dp"
  34.             android:lineSpacingExtra="5dp"
  35.             android:layout_width="wrap_content"
  36.             android:layout_height="match_parent"
  37.             android:text="@string/intro"
  38.             android:textSize="16sp"
  39.             />
  40.  
  41.  
  42.         <TextView
  43.             android:id="@+id/first_Question"
  44.             android:layout_width="match_parent"
  45.             android:layout_height="match_parent"
  46.             android:text="@string/moneyMarket"
  47.             android:textSize="20sp"
  48.             android:textStyle="bold"
  49.             android:layout_marginTop="20dp"
  50.             android:layout_marginLeft="8dp"
  51.              />
  52.  
  53.         <CheckBox
  54.             android:id="@+id/check_box1"
  55.             android:layout_width="wrap_content"
  56.             android:layout_gravity="center"
  57.             android:onClick="startEvaluation"
  58.             android:text="@string/checkbox1"
  59.             android:layout_height="wrap_content"
  60.             android:layout_margin="4dp"
  61.             android:textSize="14sp" />
  62.         <CheckBox
  63.             android:id="@+id/check_box2"
  64.             android:layout_width="wrap_content"
  65.             android:onClick="startEvaluation"
  66.             android:layout_gravity="center"
  67.             android:layout_height="wrap_content"
  68.             android:text="@string/checkBox2"
  69.             android:layout_margin="4dp"
  70.             android:textSize="14sp" />
  71.         <CheckBox
  72.             android:id="@+id/check_box3"
  73.             android:layout_gravity="center"
  74.             android:onClick="startEvaluation"
  75.             android:text="@string/checkBox3"
  76.             android:layout_width="wrap_content"
  77.             android:layout_height="wrap_content"
  78.             android:layout_margin="4dp"
  79.             android:textSize="14sp" />
  80.  
  81.         <TextView
  82.             android:id="@+id/second_Question"
  83.             android:layout_width="match_parent"
  84.             android:layout_height="match_parent"
  85.             android:text="@string/hedgeFund"
  86.             android:textSize="20sp"
  87.             android:textStyle="bold"
  88.             android:layout_marginTop="20dp"
  89.             android:layout_marginLeft="8dp"
  90.             />
  91.  
  92.         <RadioGroup
  93.             android:id="@+id/radio_group_question_1"
  94.             android:layout_width="wrap_content"
  95.             android:onClick="startEvaluation"
  96.             android:layout_height="wrap_content"
  97.             android:orientation="vertical">
  98.         <RadioButton
  99.             android:id="@+id/radioButton1"
  100.             android:layout_width="wrap_content"
  101.             android:layout_margin="4dp"
  102.             android:onClick="startEvaluation"
  103.             android:textSize="14sp"
  104.             android:text="@string/radioButton1"
  105.             android:layout_height="wrap_content" />
  106.         <RadioButton
  107.             android:id="@+id/radioButton2"
  108.             android:layout_width="wrap_content"
  109.             android:layout_margin="4dp"
  110.             android:textSize="14sp"
  111.             android:onClick="startEvaluation"
  112.             android:text="@string/radioButton2"
  113.             android:layout_height="wrap_content" />
  114.         <RadioButton
  115.             android:id="@+id/radioButton3"
  116.             android:layout_width="wrap_content"
  117.             android:layout_margin="4dp"
  118.             android:textSize="14sp"
  119.             android:onClick="startEvaluation"
  120.             android:text="@string/radioButton3"
  121.             android:layout_height="wrap_content" />
  122.         </RadioGroup>
  123.  
  124.         <TextView
  125.             android:id="@+id/third_Question"
  126.             android:layout_width="match_parent"
  127.             android:layout_height="match_parent"
  128.             android:text="@string/corporateBond"
  129.             android:onClick="startEvaluation"
  130.             android:textSize="20sp"
  131.             android:textStyle="bold"
  132.             android:layout_marginTop="20dp"
  133.             android:layout_marginLeft="8dp"
  134.             />
  135.  
  136.         <CheckBox
  137.             android:id="@+id/check_box4"
  138.             android:layout_width="wrap_content"
  139.             android:layout_gravity="center"
  140.             android:onClick="startEvaluation"
  141.             android:text="@string/checkBox4"
  142.             android:layout_height="wrap_content"
  143.             android:layout_margin="4dp"
  144.             android:textSize="14sp" />
  145.         <CheckBox
  146.             android:id="@+id/check_box5"
  147.             android:layout_width="wrap_content"
  148.             android:text="@string/checkBox5"
  149.             android:layout_gravity="center"
  150.             android:layout_height="wrap_content"
  151.             android:onClick="startEvaluation"
  152.             android:layout_margin="4dp"
  153.             android:textSize="14sp" />
  154.         <CheckBox
  155.             android:id="@+id/check_box6"
  156.             android:text="@string/checkBox6"
  157.             android:layout_gravity="center"
  158.             android:onClick="startEvaluation"
  159.             android:layout_width="wrap_content"
  160.             android:layout_height="wrap_content"
  161.             android:layout_margin="4dp"
  162.             android:textSize="14sp" />
  163.  
  164.         <EditText
  165.             android:id="@+id/editText1"
  166.             android:layout_width="wrap_content"
  167.             android:layout_height="match_parent"
  168.             android:hint="@string/editText1"
  169.             android:inputType="text"
  170.             android:textSize="20sp"
  171.             android:textStyle="bold"
  172.             android:layout_marginTop="20dp"
  173.             android:layout_marginLeft="8dp"
  174.  
  175.             />
  176.  
  177.         <TextView
  178.             android:id="@+id/edit_text1"
  179.             android:layout_width="wrap_content"
  180.             android:textColor="#000000"
  181.             android:layout_gravity="center"
  182.             android:text="@string/edit_Text1"
  183.             android:layout_height="wrap_content"
  184.             android:layout_margin="10dp"
  185.             android:textSize="14sp" />
  186.  
  187.         <TextView
  188.             android:id="@+id/last_Question"
  189.             android:layout_width="match_parent"
  190.             android:layout_height="match_parent"
  191.             android:text="@string/stock"
  192.             android:textSize="20sp"
  193.             android:textStyle="bold"
  194.             android:layout_marginTop="20dp"
  195.             android:layout_marginLeft="8dp"
  196.             />
  197.  
  198.         <RadioGroup
  199.             android:id="@+id/radio_group_question_2"
  200.             android:layout_width="wrap_content"
  201.             android:layout_height="wrap_content"
  202.             android:orientation="vertical">
  203.             <RadioButton
  204.                 android:id="@+id/radioButton4"
  205.                 android:layout_width="wrap_content"
  206.                 android:layout_margin="4dp"
  207.                 android:onClick="startEvaluation"
  208.                 android:textSize="14sp"
  209.                 android:text="@string/radioButton4"
  210.                 android:layout_height="wrap_content" />
  211.             <RadioButton
  212.                 android:id="@+id/radioButton5"
  213.                 android:layout_width="wrap_content"
  214.                 android:layout_margin="4dp"
  215.                 android:onClick="startEvaluation"
  216.                 android:textSize="14sp"
  217.                 android:text="@string/radioButton5"
  218.                 android:layout_height="wrap_content" />
  219.             <RadioButton
  220.                 android:id="@+id/radioButton6"
  221.                 android:layout_width="wrap_content"
  222.                 android:onClick="startEvaluation"
  223.                 android:layout_margin="4dp"
  224.                 android:textSize="14sp"
  225.                 android:text="@string/radioButton6"
  226.                 android:layout_height="wrap_content" />
  227.         </RadioGroup>
  228.  
  229.  
  230.         <Button
  231.             android:id="@+id/evaluateCheckBox1"
  232.             android:layout_width="match_parent"
  233.             android:layout_height="wrap_content"
  234.             android:layout_marginBottom="22dp"
  235.             android:layout_marginLeft="16dp"
  236.             android:layout_marginRight="16dp"
  237.             android:onClick="startEvaluation"
  238.             android:text="@string/evaluate_button" />
  239.  
  240.         <Button
  241.             android:id="@+id/reset"
  242.             android:layout_width="match_parent"
  243.             android:layout_height="wrap_content"
  244.             android:layout_marginLeft="16dp"
  245.             android:layout_marginRight="16dp"
  246.             android:onClick="reset"
  247.             android:text="@string/reset_button"
  248.             android:textColor="#ff0033"
  249.             android:textStyle="bold" />
  250.  
  251.  
  252.     </LinearLayout>
  253.  
  254.  
  255.  
  256. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement