Skip to content

Commit 5ea7f3c

Browse files
authored
Merge pull request #4652 from vector-im/feature/bma/avoid_useless_codegen
Use viewBindingIgnore="true" when we do not need the ViewBinding.
2 parents 406881c + ba81216 commit 5ea7f3c

File tree

157 files changed

+345
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+345
-171
lines changed

vector/src/debug/res/layout/item_sas_emoji.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:layout_marginEnd="16dp"
99
android:layout_marginBottom="4dp"
1010
android:gravity="center_vertical"
11-
android:orientation="horizontal">
11+
android:orientation="horizontal"
12+
tools:viewBindingIgnore="true">
1213

1314
<TextView
1415
android:id="@+id/sas_emoji_index"

vector/src/main/res/layout/grid_item_emoji.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="40dp"
55
android:layout_height="40dp"
6-
tools:showIn="@layout/activity_emoji_reaction_picker">
6+
tools:showIn="@layout/activity_emoji_reaction_picker"
7+
tools:viewBindingIgnore="true">
78

89
<View
910
android:id="@+id/grid_item_place_holder"

vector/src/main/res/layout/grid_section_header.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
5-
android:layout_height="wrap_content">
5+
android:layout_height="wrap_content"
6+
tools:viewBindingIgnore="true">
67

78
<TextView
89
android:id="@+id/section_header_textview"

vector/src/main/res/layout/item_attachment_big_preview.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6-
android:background="@android:color/black">
6+
android:background="@android:color/black"
7+
tools:viewBindingIgnore="true">
78

89
<ImageView
910
android:id="@+id/attachmentBigImageView"

vector/src/main/res/layout/item_attachment_miniature_preview.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:layout_height="wrap_content"
88
android:layout_margin="2dp"
99
card_view:cardBackgroundColor="@android:color/transparent"
10-
card_view:cardElevation="0dp">
10+
card_view:cardElevation="0dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<im.vector.app.core.platform.CheckableImageView
1314
android:id="@+id/attachmentMiniatureImageView"

vector/src/main/res/layout/item_autocomplete_command.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:paddingStart="8dp"
99
android:paddingTop="6dp"
1010
android:paddingEnd="8dp"
11-
android:paddingBottom="6dp">
11+
android:paddingBottom="6dp"
12+
tools:viewBindingIgnore="true">
1213

1314
<TextView
1415
android:id="@+id/commandName"

vector/src/main/res/layout/item_autocomplete_emoji.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:background="?android:colorBackground"
77
android:foreground="?attr/selectableItemBackground"
88
android:orientation="horizontal"
9-
android:padding="8dp">
9+
android:padding="8dp"
10+
tools:viewBindingIgnore="true">
1011

1112
<TextView
1213
android:id="@+id/itemAutocompleteEmoji"

vector/src/main/res/layout/item_autocomplete_matrix_item.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:background="?android:colorBackground"
77
android:foreground="?attr/selectableItemBackground"
88
android:orientation="horizontal"
9-
android:padding="8dp">
9+
android:padding="8dp"
10+
tools:viewBindingIgnore="true">
1011

1112
<ImageView
1213
android:id="@+id/matrixItemAutocompleteAvatar"
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
style="@style/Widget.Vector.TextView.Caption"
45
android:layout_width="match_parent"
56
android:layout_height="wrap_content"
67
android:background="?android:colorBackground"
78
android:padding="8dp"
89
android:text="@string/autocomplete_limited_results"
9-
android:textColor="?vctr_content_secondary" />
10+
android:textColor="?vctr_content_secondary"
11+
tools:viewBindingIgnore="true" />

vector/src/main/res/layout/item_bottom_sheet_action.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
android:paddingStart="@dimen/layout_horizontal_margin"
1313
android:paddingTop="8dp"
1414
android:paddingEnd="@dimen/layout_horizontal_margin"
15-
android:paddingBottom="8dp">
15+
android:paddingBottom="8dp"
16+
tools:viewBindingIgnore="true">
1617

1718
<!-- Used for sub items -->
1819
<Space

vector/src/main/res/layout/item_bottom_sheet_joinrule_restricted.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
android:paddingStart="@dimen/layout_horizontal_margin"
1212
android:paddingTop="8dp"
1313
android:paddingEnd="@dimen/layout_horizontal_margin"
14-
android:paddingBottom="8dp">
14+
android:paddingBottom="8dp"
15+
tools:viewBindingIgnore="true">
1516

1617
<ImageView
1718
android:id="@+id/radioIcon"
@@ -69,13 +70,13 @@
6970
<TextView
7071
android:id="@+id/listTitle"
7172
style="@style/Widget.Vector.TextView.Body.Medium"
72-
android:textStyle="bold"
7373
android:layout_width="wrap_content"
7474
android:layout_height="wrap_content"
7575
android:layout_marginTop="4dp"
7676
android:text="@string/spaces_which_can_access"
7777
android:textAllCaps="true"
7878
android:textColor="?vctr_content_secondary"
79+
android:textStyle="bold"
7980
app:layout_constraintStart_toStartOf="@id/actionTitle"
8081
app:layout_constraintTop_toBottomOf="@id/upgradeRequiredButton"
8182
app:layout_goneMarginTop="8dp" />

vector/src/main/res/layout/item_bottom_sheet_message_preview.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:id="@+id/bottom_sheet_message_preview"
66
android:layout_width="match_parent"
77
android:layout_height="wrap_content"
8-
tools:background="#1FF00FF0">
8+
tools:background="#1FF00FF0"
9+
tools:viewBindingIgnore="true">
910

1011
<ImageView
1112
android:id="@+id/bottom_sheet_message_preview_avatar"

vector/src/main/res/layout/item_bottom_sheet_message_status.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:layout_height="wrap_content"
88
android:layout_marginStart="16dp"
99
android:layout_marginEnd="16dp"
10-
android:layout_marginBottom="4dp">
10+
android:layout_marginBottom="4dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<ProgressBar
1314
android:id="@+id/messageStatusProgress"

vector/src/main/res/layout/item_bottom_sheet_quick_reaction.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:id="@+id/root_layout"
66
android:layout_width="match_parent"
77
android:layout_height="wrap_content"
8-
android:padding="8dp">
8+
android:padding="8dp"
9+
tools:viewBindingIgnore="true">
910

1011
<TextView
1112
android:id="@+id/quickReaction0"

vector/src/main/res/layout/item_bottom_sheet_radio.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
android:paddingStart="@dimen/layout_horizontal_margin"
1212
android:paddingTop="8dp"
1313
android:paddingEnd="@dimen/layout_horizontal_margin"
14-
android:paddingBottom="8dp">
14+
android:paddingBottom="8dp"
15+
tools:viewBindingIgnore="true">
1516

1617
<ImageView
1718
android:id="@+id/radioIcon"

vector/src/main/res/layout/item_bottom_sheet_room_preview.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/bottom_sheet_message_preview"
66
android:layout_width="match_parent"
7-
android:layout_height="wrap_content">
7+
android:layout_height="wrap_content"
8+
tools:viewBindingIgnore="true">
89

910
<ImageView
1011
android:id="@+id/bottomSheetRoomPreviewAvatar"

vector/src/main/res/layout/item_bottom_sheet_title.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:paddingStart="@dimen/layout_horizontal_margin"
99
android:paddingTop="8dp"
1010
android:paddingEnd="@dimen/layout_horizontal_margin"
11-
android:paddingBottom="8dp">
11+
android:paddingBottom="8dp"
12+
tools:viewBindingIgnore="true">
1213

1314
<TextView
1415
android:id="@+id/itemBottomSheetTitleTitle"

vector/src/main/res/layout/item_breadcrumbs.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:background="?android:colorBackground"
99
android:clickable="true"
1010
android:focusable="true"
11-
android:foreground="?attr/selectableItemBackground">
11+
android:foreground="?attr/selectableItemBackground"
12+
tools:viewBindingIgnore="true">
1213

1314
<View
1415
android:id="@+id/breadcrumbsUnreadIndicator"

vector/src/main/res/layout/item_checkbox.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
app:layout_constraintEnd_toEndOf="parent"
1212
app:layout_constraintStart_toStartOf="parent"
1313
app:layout_constraintTop_toBottomOf="@id/phoneBookFilterContainer"
14-
tools:text="@string/matrix_only_filter" />
14+
tools:text="@string/matrix_only_filter"
15+
tools:viewBindingIgnore="true" />

vector/src/main/res/layout/item_completion_homeserver.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
android:paddingStart="16dp"
1212
android:paddingEnd="16dp"
1313
android:textColor="?android:attr/textColorAlertDialogListItem"
14-
tools:text="https://matrix.org" />
14+
tools:text="https://matrix.org"
15+
tools:viewBindingIgnore="true" />

vector/src/main/res/layout/item_contact_action.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:background="?attr/selectableItemBackground"
88
android:orientation="horizontal"
99
android:paddingStart="8dp"
10-
android:paddingEnd="8dp">
10+
android:paddingEnd="8dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<ImageView
1314
android:id="@+id/actionIconImageView"

vector/src/main/res/layout/item_contact_detail.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:background="?android:colorBackground"
88
android:foreground="?attr/selectableItemBackground"
99
android:minHeight="60dp"
10-
android:padding="8dp">
10+
android:padding="8dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<TextView
1314
android:id="@+id/contactDetailName"

vector/src/main/res/layout/item_contact_main.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:foreground="?attr/selectableItemBackground"
99
android:paddingStart="8dp"
1010
android:paddingTop="12dp"
11-
android:paddingEnd="8dp">
11+
android:paddingEnd="8dp"
12+
tools:viewBindingIgnore="true">
1213

1314
<ImageView
1415
android:id="@+id/contactAvatar"

vector/src/main/res/layout/item_create_direct_room_user.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:background="?android:colorBackground"
88
android:foreground="?attr/selectableItemBackground"
99
android:gravity="center_vertical"
10-
android:padding="8dp">
10+
android:padding="8dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<FrameLayout
1314
android:id="@+id/createDirectRoomUserAvatarContainer"

vector/src/main/res/layout/item_device.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:background="?android:colorBackground"
88
android:foreground="?attr/selectableItemBackground"
99
android:orientation="horizontal"
10-
android:padding="8dp">
10+
android:padding="8dp"
11+
tools:viewBindingIgnore="true">
1112

1213
<LinearLayout
1314
android:layout_width="0dp"

vector/src/main/res/layout/item_discovery_policy.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:layout_height="wrap_content"
77
android:background="?attr/selectableItemBackground"
88
android:minHeight="80dp"
9-
android:padding="16dp">
9+
android:padding="16dp"
10+
tools:viewBindingIgnore="true">
1011

1112
<androidx.constraintlayout.helper.widget.Flow
1213
android:layout_width="0dp"

vector/src/main/res/layout/item_display_read_receipt.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:minHeight="40dp"
99
android:orientation="horizontal"
1010
android:paddingStart="8dp"
11-
android:paddingEnd="8dp">
11+
android:paddingEnd="8dp"
12+
tools:viewBindingIgnore="true">
1213

1314
<ImageView
1415
android:id="@+id/readReceiptAvatar"

vector/src/main/res/layout/item_divider.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
android:layout_width="match_parent"
55
android:layout_height="1dp"
66
android:background="?vctr_list_separator"
7-
tools:layout_height="100dp" />
7+
tools:layout_height="100dp"
8+
tools:viewBindingIgnore="true" />

vector/src/main/res/layout/item_divider_on_surface.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
android:layout_width="match_parent"
55
android:layout_height="1dp"
66
android:background="?vctr_list_separator_on_surface"
7-
tools:layout_height="100dp" />
7+
tools:layout_height="100dp"
8+
tools:viewBindingIgnore="true" />

vector/src/main/res/layout/item_editable_avatar.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:layout_width="match_parent"
77
android:layout_height="wrap_content"
88
android:background="?android:colorBackground"
9-
android:padding="16dp">
9+
android:padding="16dp"
10+
tools:viewBindingIgnore="true">
1011

1112
<!-- I cannot do what I want using layer-list, do it manually here-->
1213
<FrameLayout

vector/src/main/res/layout/item_editable_square_avatar.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:layout_width="match_parent"
77
android:layout_height="wrap_content"
88
android:background="?android:colorBackground"
9-
android:padding="16dp">
9+
android:padding="16dp"
10+
tools:viewBindingIgnore="true">
1011

1112
<!-- I cannot do what I want using layer-list, do it manually here-->
1213
<FrameLayout

vector/src/main/res/layout/item_emoji_result.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
android:minHeight="48dp"
1010
android:orientation="horizontal"
1111
android:paddingStart="@dimen/layout_horizontal_margin"
12-
android:paddingEnd="@dimen/layout_horizontal_margin">
12+
android:paddingEnd="@dimen/layout_horizontal_margin"
13+
tools:viewBindingIgnore="true">
1314

1415
<TextView
1516
android:id="@+id/item_emoji_tv"

vector/src/main/res/layout/item_error_retry.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:background="?android:colorBackground"
8-
android:padding="16dp">
8+
android:padding="16dp"
9+
tools:viewBindingIgnore="true">
910

1011
<TextView
1112
android:id="@+id/itemErrorRetryText"

vector/src/main/res/layout/item_expandable_textview.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:background="?android:colorBackground"
8-
android:padding="16dp">
8+
android:padding="16dp"
9+
tools:viewBindingIgnore="true">
910

1011
<im.vector.app.core.ui.views.NonScrollingTextView
1112
android:id="@+id/expandableContent"

vector/src/main/res/layout/item_form_advanced_toggle.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
android:paddingStart="@dimen/layout_horizontal_margin"
1515
android:paddingTop="12dp"
1616
android:paddingEnd="@dimen/layout_horizontal_margin"
17-
android:paddingBottom="12dp">
17+
android:paddingBottom="12dp"
18+
tools:viewBindingIgnore="true">
1819

1920
<TextView
2021
android:id="@+id/itemFormAdvancedToggleTitleView"

vector/src/main/res/layout/item_form_multiline_text_input.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:background="?android:colorBackground"
8-
android:minHeight="@dimen/item_form_min_height">
8+
android:minHeight="@dimen/item_form_min_height"
9+
tools:viewBindingIgnore="true">
910

1011
<com.google.android.material.textfield.TextInputLayout
1112
android:id="@+id/formMultiLineTextInputLayout"

vector/src/main/res/layout/item_form_submit_button.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
66
android:background="?android:colorBackground"
7-
android:minHeight="64dp">
7+
android:minHeight="64dp"
8+
tools:viewBindingIgnore="true">
89

910
<Button
1011
android:id="@+id/form_submit_button"

vector/src/main/res/layout/item_form_switch.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
android:layout_height="wrap_content"
77
android:background="?android:colorBackground"
88
android:foreground="?attr/selectableItemBackground"
9-
android:minHeight="@dimen/item_form_min_height">
9+
android:minHeight="@dimen/item_form_min_height"
10+
tools:viewBindingIgnore="true">
1011

1112
<TextView
1213
android:id="@+id/formSwitchTitle"

vector/src/main/res/layout/item_form_text_input.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:background="?android:colorBackground"
8-
android:minHeight="@dimen/item_form_min_height">
8+
android:minHeight="@dimen/item_form_min_height"
9+
tools:viewBindingIgnore="true">
910

1011
<com.google.android.material.textfield.TextInputLayout
1112
android:id="@+id/formTextInputTextInputLayout"

0 commit comments

Comments
 (0)