|
2 | 2 | xmlns:tools="http://schemas.android.com/tools"
|
3 | 3 | android:layout_width="match_parent"
|
4 | 4 | android:layout_height="match_parent"
|
5 |
| - android:paddingLeft="@dimen/activity_horizontal_margin" |
6 |
| - android:paddingTop="@dimen/activity_vertical_margin" |
7 |
| - android:paddingRight="@dimen/activity_horizontal_margin" |
8 |
| - android:paddingBottom="@dimen/activity_vertical_margin" |
9 | 5 | android:scrollbarStyle="outsideOverlay"
|
10 | 6 | tools:context="com.onesignal.MainActivity">
|
11 | 7 |
|
12 | 8 | <LinearLayout
|
13 | 9 | android:layout_width="match_parent"
|
14 | 10 | android:layout_height="wrap_content"
|
| 11 | + android:paddingLeft="@dimen/activity_horizontal_margin" |
| 12 | + android:paddingTop="@dimen/activity_vertical_margin" |
| 13 | + android:paddingRight="@dimen/activity_horizontal_margin" |
| 14 | + android:paddingBottom="@dimen/activity_vertical_margin" |
15 | 15 | android:orientation="vertical">
|
16 | 16 |
|
17 | 17 | <Button
|
|
28 | 28 | android:onClick="onConsentButtonClicked"
|
29 | 29 | android:text="Provide Consent" />
|
30 | 30 |
|
| 31 | + <LinearLayout |
| 32 | + android:layout_width="match_parent" |
| 33 | + android:layout_height="match_parent" |
| 34 | + android:orientation="horizontal"> |
| 35 | + |
| 36 | + <EditText |
| 37 | + android:id="@+id/triggerKey" |
| 38 | + android:layout_width="wrap_content" |
| 39 | + android:layout_height="wrap_content" |
| 40 | + android:layout_weight="1" |
| 41 | + android:ems="10" |
| 42 | + android:hint="Trigger Key" |
| 43 | + android:inputType="textPersonName" /> |
| 44 | + |
| 45 | + <EditText |
| 46 | + android:id="@+id/triggerValue" |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:layout_weight="1" |
| 50 | + android:ems="10" |
| 51 | + android:hint="Trigger Value" |
| 52 | + android:inputType="textPersonName" /> |
| 53 | + |
| 54 | + </LinearLayout> |
31 | 55 |
|
32 | 56 | <Button
|
33 | 57 | android:id="@+id/setTrigger"
|
|
36 | 60 | android:onClick="onSetTrigger"
|
37 | 61 | android:text="Set Trigger" />
|
38 | 62 |
|
| 63 | + <EditText |
| 64 | + android:id="@+id/outcomeName" |
| 65 | + android:layout_width="match_parent" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:ems="10" |
| 68 | + android:hint="Outcome Name" |
| 69 | + android:inputType="textPersonName" /> |
| 70 | + |
39 | 71 | <Button
|
40 | 72 | android:id="@+id/sendEvent"
|
41 | 73 | android:layout_width="match_parent"
|
42 | 74 | android:layout_height="wrap_content"
|
43 | 75 | android:onClick="onSendOutcomeClicked"
|
44 | 76 | android:text="Send Outcome" />
|
45 | 77 |
|
46 |
| - <Button |
47 |
| - android:id="@+id/sendEventWithValue" |
| 78 | + <EditText |
| 79 | + android:id="@+id/outcomeUniqueName" |
48 | 80 | android:layout_width="match_parent"
|
49 | 81 | android:layout_height="wrap_content"
|
50 |
| - android:onClick="onSendOutcomeWithValueClicked" |
51 |
| - android:text="Send Outcome With Value" /> |
| 82 | + android:ems="10" |
| 83 | + android:hint="Unique Outcome Name" |
| 84 | + android:inputType="textPersonName" /> |
52 | 85 |
|
53 | 86 | <Button
|
54 | 87 | android:id="@+id/sendUniqueEvent"
|
|
57 | 90 | android:onClick="onSendUniqueOutcomeClicked"
|
58 | 91 | android:text="Send Unique Outcome" />
|
59 | 92 |
|
| 93 | + <LinearLayout |
| 94 | + android:layout_width="match_parent" |
| 95 | + android:layout_height="wrap_content"> |
| 96 | + |
| 97 | + <EditText |
| 98 | + android:id="@+id/outcomeNameValue" |
| 99 | + android:layout_width="0dp" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:layout_weight="1" |
| 102 | + android:ems="10" |
| 103 | + android:hint="Outcome Name" |
| 104 | + android:inputType="textPersonName" /> |
| 105 | + |
| 106 | + <EditText |
| 107 | + android:id="@+id/outcomeValue" |
| 108 | + android:layout_width="0dp" |
| 109 | + android:layout_height="wrap_content" |
| 110 | + android:layout_weight="1" |
| 111 | + android:ems="10" |
| 112 | + android:hint="Outcome Value" |
| 113 | + android:inputType="numberDecimal" /> |
| 114 | + |
| 115 | + </LinearLayout> |
| 116 | + |
| 117 | + <Button |
| 118 | + android:id="@+id/sendEventWithValue" |
| 119 | + android:layout_width="match_parent" |
| 120 | + android:layout_height="wrap_content" |
| 121 | + android:onClick="onSendOutcomeWithValueClicked" |
| 122 | + android:text="Send Outcome With Value" /> |
| 123 | + |
60 | 124 | <Button
|
61 | 125 | android:id="@+id/logoutEmail"
|
62 | 126 | android:layout_width="match_parent"
|
|
72 | 136 | android:hint="YOUR_APP_ID_HERE"
|
73 | 137 | android:inputType="textPersonName" />
|
74 | 138 |
|
75 |
| - <EditText |
76 |
| - android:id="@+id/outcomeName" |
77 |
| - android:layout_width="match_parent" |
78 |
| - android:layout_height="wrap_content" |
79 |
| - android:ems="10" |
80 |
| - android:hint="Outcome Name" |
81 |
| - android:inputType="textPersonName" /> |
82 |
| - |
83 |
| - <EditText |
84 |
| - android:id="@+id/outcomeUniqueName" |
85 |
| - android:layout_width="match_parent" |
86 |
| - android:layout_height="wrap_content" |
87 |
| - android:ems="10" |
88 |
| - android:hint="Unique Outcome Name" |
89 |
| - android:inputType="textPersonName" /> |
90 |
| - |
91 | 139 | <LinearLayout
|
92 | 140 | android:layout_width="0px"
|
93 | 141 | android:layout_height="0px"
|
|
112 | 160 | android:layout_height="wrap_content"
|
113 | 161 | android:layout_weight="1"
|
114 | 162 | android:onClick="onUnsubscribeClicked"
|
115 |
| - android:text="UnSubscribe" /> |
| 163 | + android:text="Unsubscribe" /> |
| 164 | + |
116 | 165 | </LinearLayout>
|
117 | 166 |
|
118 | 167 | <LinearLayout
|
|
134 | 183 | android:layout_weight="1"
|
135 | 184 | android:onClick="onGetTagsClicked"
|
136 | 185 | android:text="Get Tags" />
|
137 |
| - </LinearLayout> |
138 | 186 |
|
139 |
| - <LinearLayout |
140 |
| - android:layout_width="match_parent" |
141 |
| - android:layout_height="match_parent" |
142 |
| - android:orientation="horizontal"> |
143 |
| - |
144 |
| - <EditText |
145 |
| - android:id="@+id/triggerKey" |
146 |
| - android:layout_width="wrap_content" |
147 |
| - android:layout_height="wrap_content" |
148 |
| - android:layout_weight="1" |
149 |
| - android:ems="10" |
150 |
| - android:hint="Trigger Key" |
151 |
| - android:inputType="textPersonName" /> |
152 |
| - |
153 |
| - <EditText |
154 |
| - android:id="@+id/triggerValue" |
155 |
| - android:layout_width="wrap_content" |
156 |
| - android:layout_height="wrap_content" |
157 |
| - android:layout_weight="1" |
158 |
| - android:ems="10" |
159 |
| - android:hint="Trigger Value" |
160 |
| - android:inputType="textPersonName" /> |
161 |
| - </LinearLayout> |
162 |
| - |
163 |
| - <LinearLayout |
164 |
| - android:layout_width="match_parent" |
165 |
| - android:layout_height="wrap_content"> |
166 |
| - |
167 |
| - <EditText |
168 |
| - android:id="@+id/outcomeNameValue" |
169 |
| - android:layout_width="0dp" |
170 |
| - android:layout_height="wrap_content" |
171 |
| - android:layout_weight="1" |
172 |
| - android:ems="10" |
173 |
| - android:hint="Outcome Name" |
174 |
| - android:inputType="textPersonName" /> |
175 |
| - |
176 |
| - <EditText |
177 |
| - android:id="@+id/outcomeValue" |
178 |
| - android:layout_width="0dp" |
179 |
| - android:layout_height="wrap_content" |
180 |
| - android:layout_weight="1" |
181 |
| - android:ems="10" |
182 |
| - android:hint="Outcome Value" |
183 |
| - android:inputType="numberDecimal" /> |
184 | 187 | </LinearLayout>
|
185 | 188 |
|
186 | 189 | <RelativeLayout
|
|
0 commit comments