|
4 | 4 | android:layout_width="fill_parent" |
5 | 5 | android:layout_height="fill_parent" |
6 | 6 | > |
7 | | -<TextView |
8 | | - android:layout_width="fill_parent" |
9 | | - android:layout_height="wrap_content" |
10 | | - android:text="Hello World, MyActivity" |
11 | | - /> |
12 | | - <Button |
13 | | - android:id="@+id/oneHelper" |
14 | | - android:layout_width="wrap_content" |
15 | | - android:layout_height="wrap_content" |
16 | | - android:text="One Helper"/> |
17 | | - <Button |
18 | | - android:id="@+id/manyHelpers" |
19 | | - android:layout_width="wrap_content" |
| 7 | + |
| 8 | + <LinearLayout |
| 9 | + android:layout_width="fill_parent" |
20 | 10 | android:layout_height="wrap_content" |
21 | | - android:text="Many Helpers"/> |
| 11 | + android:orientation="horizontal"> |
| 12 | + |
| 13 | + <Button |
| 14 | + android:id="@+id/oneWrite" |
| 15 | + android:layout_width="wrap_content" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:text="1 Write"/> |
| 18 | + <Button |
| 19 | + android:id="@+id/manyWrite" |
| 20 | + android:layout_width="wrap_content" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:text="+ Write"/> |
| 23 | + |
| 24 | + <Button |
| 25 | + android:id="@+id/oneWriteManyRead" |
| 26 | + android:layout_width="wrap_content" |
| 27 | + android:layout_height="wrap_content" |
| 28 | + android:text="1 Write + Read"/> |
| 29 | + <Button |
| 30 | + android:id="@+id/manyRead" |
| 31 | + android:layout_width="wrap_content" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:text="+ Read"/> |
| 34 | + |
| 35 | + </LinearLayout> |
22 | 36 |
|
23 | 37 | <Button |
24 | 38 | android:id="@+id/testTransactionIsolation" |
25 | 39 | android:layout_width="wrap_content" |
26 | 40 | android:layout_height="wrap_content" |
27 | 41 | android:text="Test Transaction Isolation"/> |
28 | 42 |
|
29 | | - <EditText |
30 | | - android:layout_width="fill_parent" |
31 | | - android:layout_height="wrap_content" |
32 | | - android:id="@+id/numberOfInserts"/> |
33 | 43 | <LinearLayout |
34 | 44 | android:layout_width="fill_parent" |
35 | 45 | android:layout_height="wrap_content" |
36 | 46 | android:orientation="horizontal"> |
| 47 | + |
| 48 | + <EditText |
| 49 | + android:layout_width="60dp" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:id="@+id/numberOfInserts" |
| 52 | + /> |
| 53 | + |
37 | 54 | <Button |
38 | 55 | android:layout_width="wrap_content" |
39 | 56 | android:layout_height="wrap_content" |
|
48 | 65 | android:id="@+id/trans"/> |
49 | 66 | </LinearLayout> |
50 | 67 |
|
| 68 | + <LinearLayout |
| 69 | + android:layout_width="match_parent" |
| 70 | + android:layout_height="wrap_content" |
| 71 | + android:orientation="horizontal" |
| 72 | + > |
| 73 | + |
| 74 | + <Button |
| 75 | + android:layout_width="wrap_content" |
| 76 | + android:layout_height="wrap_content" |
| 77 | + android:text="Exclusive No Yielding" |
| 78 | + android:id="@+id/no_yielding" /> |
| 79 | + |
| 80 | + <Button |
| 81 | + android:layout_width="wrap_content" |
| 82 | + android:layout_height="wrap_content" |
| 83 | + android:text="Safely Contend Yield" |
| 84 | + android:id="@+id/yielding" /> |
| 85 | + |
| 86 | + </LinearLayout> |
| 87 | + |
| 88 | + |
| 89 | + <LinearLayout |
| 90 | + android:layout_width="match_parent" |
| 91 | + android:layout_height="wrap_content" |
| 92 | + android:orientation="horizontal" |
| 93 | + > |
| 94 | + |
| 95 | + <Button |
| 96 | + android:layout_width="wrap_content" |
| 97 | + android:layout_height="wrap_content" |
| 98 | + android:text="No Yield Read" |
| 99 | + android:id="@+id/no_yield_read" /> |
| 100 | + |
| 101 | + <Button |
| 102 | + android:layout_width="wrap_content" |
| 103 | + android:layout_height="wrap_content" |
| 104 | + android:text="Yield and Read" |
| 105 | + android:id="@+id/yield_and_read" /> |
| 106 | + |
| 107 | + </LinearLayout> |
| 108 | + |
51 | 109 | <TextView |
52 | 110 | android:layout_width="fill_parent" |
53 | 111 | android:layout_height="wrap_content" |
54 | 112 | android:id="@+id/timeOut"/> |
55 | 113 |
|
56 | | - |
57 | 114 | <TextView |
58 | 115 | android:layout_width="fill_parent" |
59 | 116 | android:layout_height="wrap_content" |
60 | 117 | android:id="@+id/results" |
61 | | - android:text=""/> |
| 118 | + /> |
| 119 | + |
| 120 | + <co.touchlab.dblocking.TickerBar |
| 121 | + android:id="@+id/tickerBar" |
| 122 | + android:layout_height="40px" |
| 123 | + android:layout_width="match_parent" |
| 124 | + /> |
62 | 125 |
|
63 | 126 | </LinearLayout> |
64 | 127 |
|
0 commit comments