xref: /aosp_15_r20/external/leakcanary2/leakcanary-android-sample/src/main/res/layout/main_activity.xml (revision d9e8da70d8c9df9a41d7848ae506fb3115cae6e6)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 Square, Inc.
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:layout_margin="16dp"
23    >
24
25  <TextView
26      android:id="@+id/helper_text"
27      android:layout_width="match_parent"
28      android:layout_height="wrap_content"
29      android:layout_marginBottom="16dp"
30      android:text="@string/helper_text"
31      />
32  <Button
33      android:id="@+id/recreate_activity_button"
34      android:layout_width="wrap_content"
35      android:layout_gravity="center"
36      android:layout_height="wrap_content"
37      android:text="Recreate Activity"
38      />
39  <Button
40      android:id="@+id/leak_activity_button"
41      android:layout_width="wrap_content"
42      android:layout_gravity="center"
43      android:layout_height="wrap_content"
44      android:text="Leak Activity"
45      />
46  <Button
47      android:id="@+id/show_dialog_button"
48      android:layout_width="wrap_content"
49      android:layout_gravity="center"
50      android:layout_height="wrap_content"
51      android:text="Show dialog"
52      />
53  <Button
54      android:id="@+id/start_service_button"
55      android:layout_width="wrap_content"
56      android:layout_gravity="center"
57      android:layout_height="wrap_content"
58      android:text="@string/start_service_button_text"
59      />
60  <Button
61      android:id="@+id/leak_receiver_button"
62      android:layout_width="wrap_content"
63      android:layout_gravity="center"
64      android:layout_height="wrap_content"
65      android:text="Create &amp; leak Receiver"
66      />
67  <Button
68    android:id="@+id/message_leak_button"
69    android:layout_width="wrap_content"
70    android:layout_gravity="center"
71    android:layout_height="wrap_content"
72    android:text="Create Message leak"
73    />
74  <Button
75    android:id="@+id/infinite_animator"
76    android:layout_width="wrap_content"
77    android:layout_gravity="center"
78    android:layout_height="wrap_content"
79    android:text="Create animator leak"
80    />
81  <Button
82    android:id="@+id/finish_activity"
83    android:layout_width="wrap_content"
84    android:layout_gravity="center"
85    android:layout_height="wrap_content"
86    android:text="Finish"
87    />
88
89</LinearLayout>
90