Advertisement
Guest User

get all checkboxes

a guest
Sep 24th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.72 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android">
  3.  
  4.     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5.        android:isScrollContainer="true">
  6.  
  7.        
  8.         <LinearLayout>
  9.             <TextView/>
  10.             <EditText/>
  11.             ...
  12.         </LinearLayout>
  13.  
  14.         <LinearLayout>
  15.             <TextView/>
  16.             <EditText/>
  17.             ...
  18.         </LinearLayout>
  19.  
  20.         <LinearLayout>
  21.             <EditText/>
  22.             <EditText/>
  23.             <EditText/>
  24.             <EditText/>
  25.         </LinearLayout>
  26.  
  27.         <!-- this button adds more of the last EditTexts -->
  28.         <Button/>
  29.  
  30.         <LinearLayout>
  31.             <TextView/>
  32.             <EditText/>
  33.             ...
  34.         </LinearLayout>
  35.  
  36.         <LinearLayout>
  37.             <TextView/>
  38.             <EditText/>
  39.             ...
  40.         </LinearLayout>
  41.  
  42.         <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android">
  43.             <TableLayout xmlns:android="http://schemas.android.com/apk/res/android">
  44.                 <TableRow>
  45.                     <TextView/>
  46.                     <TextView/>
  47.                     ...
  48.                 </TableRow>
  49.  
  50.                 <TableRow>
  51.                     <EditText/>
  52.                     <CheckBox
  53.                        android:id="@+id/gear_ready_CheckBox"
  54.                        android:layout_gravity="center"
  55.                        />
  56.  
  57.                     <EditText/>
  58.  
  59.                     <EditText/>
  60.  
  61.                     <CheckBox
  62.                        android:id="@+id/gear_base_CheckBox"
  63.                        android:layout_gravity="center"
  64.                        />
  65.                 </TableRow>
  66.  
  67.                 <TableRow>
  68.  
  69.                     <EditText/>
  70.  
  71.                     <CheckBox
  72.                        android:id="@id/gear_ready_CheckBox"
  73.                        android:layout_gravity="center"
  74.                        />
  75.  
  76.                     <EditText/>
  77.  
  78.                     <EditText/>
  79.  
  80.                     <CheckBox
  81.                        android:id="@id/gear_base_CheckBox"
  82.                        android:layout_gravity="center"
  83.                        />
  84.                 </TableRow>
  85.  
  86.             </TableLayout>
  87.         </RelativeLayout>
  88.  
  89.         <!-- This button adds 2 additional TableRows like the 2 above -->
  90.         <Button/>
  91.  
  92.         <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android">
  93.  
  94.             <TableLayout>
  95.  
  96.                 <TableRow>
  97.                     <TextView/>
  98.                     <TextView/>
  99.                     ...
  100.                 </TableRow>
  101.  
  102.                 <TableRow>
  103.                     <EditText/>
  104.                     <EditText/>
  105.                     ...
  106.                 </TableRow>
  107.  
  108.                 <TableRow>
  109.                     <EditText/>
  110.                     <EditText/>
  111.                     ...
  112.                 </TableRow>
  113.  
  114.             </TableLayout>
  115.         </RelativeLayout>
  116.  
  117.         <Button/>
  118.  
  119.         <LinearLayout>
  120.             <TextView/>
  121.             <EditText/>
  122.             ...
  123.         </LinearLayout>
  124.  
  125.         <LinearLayout>
  126.             <TextView/>
  127.             <EditText/>
  128.         </LinearLayout>
  129.  
  130.         <LinearLayout>
  131.             <TextView/>
  132.             <EditText/>
  133.             ...
  134.         </LinearLayout>
  135.  
  136.         <LinearLayout>
  137.             <TextView/>
  138.             <EditText/>
  139.         </LinearLayout>
  140.  
  141.         <LinearLayout>
  142.             <TextView/>
  143.             <EditText/>
  144.         </LinearLayout>
  145.  
  146.         <LinearLayout>
  147.             <TextView/>
  148.             <EditText/>
  149.         </LinearLayout>
  150.  
  151.         <LinearLayout>
  152.             <TextView/>
  153.             <EditText/>
  154.         </LinearLayout>
  155.     </LinearLayout>
  156. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement