• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<merge xmlns:android="http://schemas.android.com/apk/res/android"
3    android:layout_width="match_parent"
4    android:layout_height="match_parent" >
5
6    <!-- Neither parent nor child define background: delete is okay -->
7
8    <FrameLayout
9        android:id="@+id/LinearLayout"
10        android:layout_width="match_parent"
11        android:layout_height="match_parent" >
12
13        <LinearLayout
14            android:layout_width="match_parent"
15            android:layout_height="match_parent" >
16
17            <TextView
18                android:layout_width="wrap_content"
19                android:layout_height="wrap_content" />
20        </LinearLayout>
21    </FrameLayout>
22
23    <!-- Both define background: cannot be deleted -->
24
25    <FrameLayout
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:background="@drawable/bg" >
29
30        <LinearLayout
31            android:layout_width="match_parent"
32            android:layout_height="match_parent"
33            android:background="@drawable/bg" >
34
35            <TextView
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content" />
38        </LinearLayout>
39    </FrameLayout>
40
41    <!-- Only child defines background: delete is okay -->
42
43    <FrameLayout
44        android:layout_width="match_parent"
45        android:layout_height="match_parent" >
46
47        <LinearLayout
48            android:layout_width="match_parent"
49            android:layout_height="match_parent"
50            android:background="@drawable/bg" >
51
52            <TextView
53                android:layout_width="wrap_content"
54                android:layout_height="wrap_content" />
55        </LinearLayout>
56    </FrameLayout>
57
58    <!-- Only parent defines background: delete is okay -->
59
60    <FrameLayout
61        android:layout_width="match_parent"
62        android:layout_height="match_parent"
63        android:background="@drawable/bg" >
64
65        <LinearLayout
66            android:layout_width="match_parent"
67            android:layout_height="match_parent" >
68
69            <TextView
70                android:layout_width="wrap_content"
71                android:layout_height="wrap_content" />
72        </LinearLayout>
73    </FrameLayout>
74
75    <!-- Leaf cannot be deleted because it has a background -->
76
77    <FrameLayout
78        android:layout_width="match_parent"
79        android:layout_height="match_parent"
80        android:background="@drawable/bg" >
81    </FrameLayout>
82
83    <!-- Useless leaf -->
84
85    <FrameLayout
86        android:layout_width="match_parent"
87        android:layout_height="match_parent" >
88    </FrameLayout>
89</merge>
90