|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" |
3 |
| -android:id="@+id/titanium_ui_listview_holder" |
4 |
| -android:layout_width="match_parent" |
5 |
| -android:layout_height="wrap_content" |
6 |
| -android:clipToPadding="false" |
7 |
| -android:outlineProvider="bounds"> |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:id="@+id/titanium_ui_listview_holder" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + android:clipToPadding="false" |
| 8 | + android:outlineProvider="bounds"> |
8 | 9 |
|
9 |
| -<!-- Header Container --> |
10 |
| - <RelativeLayout |
11 |
| -android:id="@+id/titanium_ui_listview_holder_header_container" |
12 |
| -android:layout_width="match_parent" |
13 |
| -android:layout_height="wrap_content" |
14 |
| -android:layout_alignParentTop="true"> |
| 10 | + <org.appcelerator.titanium.view.TiCompositeLayout |
| 11 | + android:id="@+id/titanium_ui_listview_holder_content" |
| 12 | + android:layout_width="wrap_content" |
| 13 | + android:layout_height="wrap_content" |
| 14 | + android:addStatesFromChildren="true" |
| 15 | + app:layout_constraintBottom_toTopOf="@+id/titanium_ui_listview_holder_footer_title" |
| 16 | + app:layout_constraintStart_toEndOf="@id/titanium_ui_listview_holder_left_image" |
| 17 | + app:layout_constraintTop_toBottomOf="@+id/titanium_ui_listview_holder_header_title" /> |
15 | 18 |
|
16 |
| - <org.appcelerator.titanium.view.TiCompositeLayout |
17 |
| -android:id="@+id/titanium_ui_listview_holder_header" |
18 |
| -android:layout_width="match_parent" |
19 |
| -android:layout_height="wrap_content" |
20 |
| -android:focusable="false" |
21 |
| -android:focusableInTouchMode="false"/> |
22 |
| - <TextView |
23 |
| -android:id="@+id/titanium_ui_listview_holder_header_title" |
24 |
| -android:layout_width="match_parent" |
25 |
| -android:layout_height="wrap_content" |
26 |
| -android:minHeight="18dp" |
27 |
| -android:paddingLeft="5dp" |
28 |
| -android:paddingRight="5dp" |
29 |
| -android:gravity="center_vertical" |
30 |
| -android:focusable="false" |
31 |
| -android:focusableInTouchMode="false"/> |
32 |
| - </RelativeLayout> |
| 19 | + <ImageView |
| 20 | + android:id="@+id/titanium_ui_listview_holder_left_image" |
| 21 | + android:layout_width="wrap_content" |
| 22 | + android:layout_height="wrap_content" |
| 23 | + android:focusable="false" |
| 24 | + android:focusableInTouchMode="false" |
| 25 | + android:paddingStart="6dp" |
| 26 | + android:paddingEnd="0dp" |
| 27 | + app:layout_constraintBottom_toTopOf="@id/titanium_ui_listview_holder_footer_title" |
| 28 | + app:layout_constraintStart_toStartOf="parent" |
| 29 | + app:layout_constraintTop_toBottomOf="@id/titanium_ui_listview_holder_header_title" /> |
33 | 30 |
|
34 |
| -<!-- Outer Content Container --> |
35 |
| - <RelativeLayout |
36 |
| -android:id="@+id/titanium_ui_listview_holder_outer_content_container" |
37 |
| -android:layout_width="match_parent" |
38 |
| -android:layout_height="wrap_content" |
39 |
| -android:layout_below="@id/titanium_ui_listview_holder_header_container" |
40 |
| -android:addStatesFromChildren="true"> |
| 31 | + <ImageView |
| 32 | + android:id="@+id/titanium_ui_listview_holder_right_image" |
| 33 | + android:layout_width="wrap_content" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:layout_marginEnd="6dp" |
| 36 | + android:focusable="false" |
| 37 | + android:focusableInTouchMode="false" |
| 38 | + app:layout_constraintBottom_toBottomOf="@id/titanium_ui_listview_holder_footer_title" |
| 39 | + app:layout_constraintEnd_toEndOf="parent" |
| 40 | + app:layout_constraintTop_toBottomOf="@id/titanium_ui_listview_holder_header_title" /> |
41 | 41 |
|
42 |
| - <ImageView |
43 |
| -android:id="@+id/titanium_ui_listview_holder_left_image" |
44 |
| -android:layout_width="wrap_content" |
45 |
| -android:layout_height="wrap_content" |
46 |
| -android:layout_alignParentLeft="true" |
47 |
| -android:layout_centerVertical="true" |
48 |
| -android:layout_marginLeft="6dp" |
49 |
| -android:focusable="false" |
50 |
| -android:focusableInTouchMode="false"/> |
| 42 | + <TextView |
| 43 | + android:id="@+id/titanium_ui_listview_holder_header_title" |
| 44 | + android:layout_width="0dp" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:focusable="false" |
| 47 | + android:focusableInTouchMode="false" |
| 48 | + android:gravity="center_vertical" |
| 49 | + android:minHeight="18dp" |
| 50 | + android:paddingLeft="5dp" |
| 51 | + android:paddingRight="5dp" |
| 52 | + app:layout_constraintEnd_toEndOf="parent" |
| 53 | + app:layout_constraintStart_toStartOf="parent" |
| 54 | + app:layout_constraintTop_toTopOf="parent" /> |
51 | 55 |
|
52 |
| - <org.appcelerator.titanium.view.TiCompositeLayout |
53 |
| -android:id="@+id/titanium_ui_listview_holder_content" |
54 |
| -android:layout_width="match_parent" |
55 |
| -android:layout_height="wrap_content" |
56 |
| -android:layout_toRightOf="@id/titanium_ui_listview_holder_left_image" |
57 |
| -android:addStatesFromChildren="true"/> |
| 56 | + <TextView |
| 57 | + android:id="@+id/titanium_ui_listview_holder_footer_title" |
| 58 | + android:layout_width="0dp" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:focusable="false" |
| 61 | + android:focusableInTouchMode="false" |
| 62 | + android:gravity="center_vertical" |
| 63 | + android:minHeight="18dp" |
| 64 | + android:paddingLeft="5dp" |
| 65 | + android:paddingRight="5dp" |
| 66 | + app:layout_constraintBottom_toBottomOf="parent" |
| 67 | + app:layout_constraintEnd_toEndOf="parent" |
| 68 | + app:layout_constraintStart_toStartOf="parent" /> |
58 | 69 |
|
59 |
| - <ImageView |
60 |
| -android:id="@+id/titanium_ui_listview_holder_right_image" |
61 |
| -android:layout_width="wrap_content" |
62 |
| -android:layout_height="wrap_content" |
63 |
| -android:layout_alignParentRight="true" |
64 |
| -android:layout_centerVertical="true" |
65 |
| -android:layout_marginRight="6dp" |
66 |
| -android:focusable="false" |
67 |
| -android:focusableInTouchMode="false"/> |
68 | 70 |
|
69 |
| - </RelativeLayout> |
| 71 | + <org.appcelerator.titanium.view.TiCompositeLayout |
| 72 | + android:id="@+id/titanium_ui_listview_holder_header" |
| 73 | + android:layout_width="wrap_content" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:focusable="false" |
| 76 | + android:focusableInTouchMode="false" |
| 77 | + app:layout_constraintEnd_toEndOf="parent" |
| 78 | + app:layout_constraintStart_toStartOf="parent" |
| 79 | + app:layout_constraintTop_toTopOf="parent" /> |
70 | 80 |
|
71 |
| -<!-- Footer Container --> |
72 |
| - <RelativeLayout |
73 |
| -android:id="@+id/titanium_ui_listview_holder_footer_container" |
74 |
| -android:layout_width="match_parent" |
75 |
| -android:layout_height="wrap_content" |
76 |
| -android:layout_alignParentBottom="true" |
77 |
| -android:layout_below="@id/titanium_ui_listview_holder_outer_content_container"> |
| 81 | + <org.appcelerator.titanium.view.TiCompositeLayout |
| 82 | + android:id="@+id/titanium_ui_listview_holder_footer" |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:focusable="false" |
| 86 | + android:focusableInTouchMode="false" |
| 87 | + app:layout_constraintBottom_toBottomOf="parent" |
| 88 | + app:layout_constraintEnd_toEndOf="parent" |
| 89 | + app:layout_constraintStart_toStartOf="parent" /> |
78 | 90 |
|
79 |
| - <org.appcelerator.titanium.view.TiCompositeLayout |
80 |
| -android:id="@+id/titanium_ui_listview_holder_footer" |
81 |
| -android:layout_width="match_parent" |
82 |
| -android:layout_height="wrap_content" |
83 |
| -android:focusable="false" |
84 |
| -android:focusableInTouchMode="false"/> |
85 |
| - <TextView |
86 |
| -android:id="@+id/titanium_ui_listview_holder_footer_title" |
87 |
| -android:layout_width="match_parent" |
88 |
| -android:layout_height="wrap_content" |
89 |
| -android:minHeight="18dp" |
90 |
| -android:paddingLeft="5dp" |
91 |
| -android:paddingRight="5dp" |
92 |
| -android:gravity="center_vertical" |
93 |
| -android:focusable="false" |
94 |
| -android:focusableInTouchMode="false" /> |
95 |
| - </RelativeLayout> |
96 |
| -</RelativeLayout> |
| 91 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments