Home | History | Annotate | Download | only in layout
      1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      2     xmlns:tools="http://schemas.android.com/tools"
      3     android:layout_width="match_parent"
      4     android:layout_height="fill_parent"
      5     android:paddingBottom="@dimen/activity_vertical_margin"
      6     android:paddingLeft="@dimen/activity_horizontal_margin"
      7     android:paddingRight="@dimen/activity_horizontal_margin"
      8     android:paddingTop="@dimen/activity_vertical_margin"
      9     android:orientation="vertical"
     10     tools:context=".MainActivity" >
     11 
     12     <LinearLayout
     13     android:layout_width="fill_parent"
     14     android:layout_height="wrap_content"
     15     android:layout_weight="1"
     16     android:orientation="horizontal">
     17 
     18     <Button
     19         android:layout_width="fill_parent"
     20         android:layout_height="fill_parent"
     21         android:text="@string/add_32"
     22         android:layout_weight="1"
     23         android:onClick="add32ByteBlocks" />
     24 
     25     <Button
     26         android:layout_width="fill_parent"
     27         android:layout_height="fill_parent"
     28         android:text="@string/free_32"
     29         android:layout_weight="1"
     30         android:onClick="free32ByteBlocks" />
     31     </LinearLayout>
     32 
     33     <LinearLayout
     34     android:layout_width="fill_parent"
     35     android:layout_height="wrap_content"
     36     android:layout_weight="1"
     37     android:orientation="horizontal">
     38 
     39     <Button
     40         android:layout_width="fill_parent"
     41         android:layout_height="fill_parent"
     42         android:text="@string/add_2m"
     43         android:layout_weight="1"
     44         android:onClick="add2MByteBlocks" />
     45 
     46     <Button
     47         android:layout_width="fill_parent"
     48         android:layout_height="fill_parent"
     49         android:text="@string/free_2m"
     50         android:layout_weight="1"
     51         android:onClick="free2MByteBlocks" />
     52     </LinearLayout>
     53 
     54     <LinearLayout
     55     android:id="@+id/linearLayout2"
     56     android:layout_width="fill_parent"
     57     android:layout_height="wrap_content"
     58     android:layout_weight="1"
     59     android:orientation="horizontal">
     60 
     61     <RadioGroup
     62         android:id="@+id/blockSize"
     63         android:layout_width="fill_parent"
     64         android:layout_height="wrap_content"
     65         android:layout_gravity="center"
     66         android:orientation="horizontal"
     67         android:gravity="center" >
     68 
     69         <RadioButton
     70         android:id="@+id/radio17"
     71         android:layout_width="wrap_content"
     72         android:layout_height="wrap_content"
     73         android:text="@string/_17byte"
     74         android:checked="true" />
     75 
     76         <RadioButton
     77         android:id="@+id/radio71"
     78         android:layout_width="wrap_content"
     79         android:layout_height="wrap_content"
     80         android:text="@string/_71byte" />
     81     </RadioGroup>
     82     </LinearLayout>
     83 
     84     <LinearLayout
     85     android:layout_width="fill_parent"
     86     android:layout_height="wrap_content"
     87     android:layout_weight="1"
     88     android:orientation="horizontal">
     89 
     90     <Button
     91         android:layout_width="fill_parent"
     92         android:layout_height="fill_parent"
     93         android:text="@string/add_variable"
     94         android:layout_weight="1"
     95         android:onClick="addVariableSizedBlocks" />
     96 
     97     <Button
     98         android:layout_width="fill_parent"
     99         android:layout_height="fill_parent"
    100         android:text="@string/free_variable"
    101         android:layout_weight="1"
    102         android:onClick="freeVariableSizedBlocks" />
    103     </LinearLayout>
    104 </LinearLayout>
    105