Skip to content

Commit a95cc7b

Browse files
committed
flatten layout hierarchy
1 parent 4435937 commit a95cc7b

1 file changed

Lines changed: 57 additions & 63 deletions

File tree

app/src/main/res/layout/content_activity_history_item.xml

Lines changed: 57 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,72 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="wrap_content"
5-
android:background="#60808080">
5+
android:layout_marginTop="1dp"
6+
android:background="#60111111"
7+
android:orientation="vertical"
8+
android:padding="8dp">
69

710
<LinearLayout
811
android:layout_width="match_parent"
9-
android:layout_height="wrap_content"
10-
android:layout_marginTop="1dp"
11-
android:background="#60111111"
12-
android:orientation="vertical"
13-
android:padding="8dp">
12+
android:layout_height="wrap_content">
1413

15-
<LinearLayout
16-
android:layout_width="match_parent"
17-
android:layout_height="wrap_content">
14+
<View
15+
android:layout_width="4dp"
16+
android:layout_height="match_parent"
17+
android:layout_marginEnd="4dp"
18+
android:background="#4DD0E1" />
1819

19-
<View
20-
android:layout_width="4dp"
21-
android:layout_height="match_parent"
22-
android:layout_marginEnd="4dp"
23-
android:background="#4DD0E1" />
20+
<TextView
21+
android:id="@+id/item_package_name"
22+
android:layout_width="0dp"
23+
android:layout_height="wrap_content"
24+
android:layout_weight="1"
25+
android:fontFamily="?attr/appFontFamilyTitle"
26+
android:textColor="#FFFFFF"
27+
android:textSize="12sp" />
2428

25-
<TextView
26-
android:id="@+id/item_package_name"
27-
android:layout_width="0dp"
28-
android:layout_height="wrap_content"
29-
android:layout_weight="1"
30-
android:fontFamily="?attr/appFontFamilyTitle"
31-
android:textColor="#FFFFFF"
32-
android:textSize="12sp" />
33-
34-
<ImageView
35-
android:id="@+id/copy_pkg"
36-
android:layout_width="@dimen/popupWindowCopyIconSize"
37-
android:layout_height="@dimen/popupWindowCopyIconSize"
38-
android:layout_gravity="center"
39-
android:layout_marginStart="4dp"
40-
android:background="?selectableItemBackground"
41-
android:importantForAccessibility="no"
42-
android:scaleType="fitXY"
43-
android:src="@drawable/ic_copy" />
44-
</LinearLayout>
45-
46-
<LinearLayout
47-
android:layout_width="match_parent"
48-
android:layout_height="wrap_content">
29+
<ImageView
30+
android:id="@+id/copy_pkg"
31+
android:layout_width="@dimen/popupWindowCopyIconSize"
32+
android:layout_height="@dimen/popupWindowCopyIconSize"
33+
android:layout_gravity="center"
34+
android:layout_marginStart="4dp"
35+
android:background="?selectableItemBackground"
36+
android:importantForAccessibility="no"
37+
android:scaleType="fitXY"
38+
android:src="@drawable/ic_copy" />
39+
</LinearLayout>
4940

50-
<View
51-
android:layout_width="4dp"
52-
android:layout_height="match_parent"
53-
android:layout_marginEnd="4dp"
54-
android:background="#FFCA28" />
41+
<LinearLayout
42+
android:layout_width="match_parent"
43+
android:layout_height="wrap_content">
5544

56-
<TextView
57-
android:id="@+id/item_class_name"
58-
android:layout_width="0dp"
59-
android:layout_height="wrap_content"
60-
android:layout_marginTop="2dp"
61-
android:layout_weight="1"
62-
android:fontFamily="?attr/appFontFamilyBody"
63-
android:textColor="#E0E0E0"
64-
android:textSize="12sp" />
45+
<View
46+
android:layout_width="4dp"
47+
android:layout_height="match_parent"
48+
android:layout_marginEnd="4dp"
49+
android:background="#FFCA28" />
6550

66-
<ImageView
67-
android:id="@+id/copy_cls"
68-
android:layout_width="@dimen/popupWindowCopyIconSize"
69-
android:layout_height="@dimen/popupWindowCopyIconSize"
70-
android:layout_gravity="center"
71-
android:layout_marginStart="4dp"
72-
android:background="?selectableItemBackground"
73-
android:importantForAccessibility="no"
74-
android:scaleType="fitXY"
75-
android:src="@drawable/ic_copy" />
76-
</LinearLayout>
51+
<TextView
52+
android:id="@+id/item_class_name"
53+
android:layout_width="0dp"
54+
android:layout_height="wrap_content"
55+
android:layout_marginTop="2dp"
56+
android:layout_weight="1"
57+
android:fontFamily="?attr/appFontFamilyBody"
58+
android:textColor="#E0E0E0"
59+
android:textSize="12sp" />
7760

61+
<ImageView
62+
android:id="@+id/copy_cls"
63+
android:layout_width="@dimen/popupWindowCopyIconSize"
64+
android:layout_height="@dimen/popupWindowCopyIconSize"
65+
android:layout_gravity="center"
66+
android:layout_marginStart="4dp"
67+
android:background="?selectableItemBackground"
68+
android:importantForAccessibility="no"
69+
android:scaleType="fitXY"
70+
android:src="@drawable/ic_copy" />
7871
</LinearLayout>
72+
7973
</LinearLayout>

0 commit comments

Comments
 (0)