mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Use @id
and not @+id
when referencing ids in layouts - ConstraintLayout
This commit is contained in:
parent
2d17156861
commit
e106ff8de0
17 changed files with 22 additions and 22 deletions
|
@ -27,5 +27,5 @@
|
|||
android:textSize===9
|
||||
|
||||
### Use `@id` and not `@+id` when referencing ids in layouts
|
||||
Of="@\+id
|
||||
layout_constraint(.*)="@\+id
|
||||
accessibilityTraversal(.*)="@\+id
|
|
@ -26,7 +26,7 @@
|
|||
android:layout_height="24dp"
|
||||
android:importantForAccessibility="no"
|
||||
android:src="@drawable/ic_shield_warning"
|
||||
app:layout_constraintCircle="@+id/ivUserAvatar"
|
||||
app:layout_constraintCircle="@id/ivUserAvatar"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
android:id="@+id/otherUserShield"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
app:layout_constraintCircle="@+id/otherUserAvatarImageView"
|
||||
app:layout_constraintCircle="@id/otherUserAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="16dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
android:background="@drawable/bg_unread_highlight"
|
||||
android:gravity="center"
|
||||
android:textColor="?colorOnError"
|
||||
app:layout_constraintCircle="@+id/action_view_icon_image"
|
||||
app:layout_constraintCircle="@id/action_view_icon_image"
|
||||
app:layout_constraintCircleAngle="45"
|
||||
app:layout_constraintCircleRadius="12dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:alpha="0"
|
||||
app:layout_constraintCircle="@+id/matrixProfileToolbarAvatarImageView"
|
||||
app:layout_constraintCircle="@id/matrixProfileToolbarAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:alpha="1"
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
android:background="@drawable/background_circle"
|
||||
android:padding="2dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/roomToolbarAvatarImageView"
|
||||
app:layout_constraintCircle="@id/roomToolbarAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
@ -77,7 +77,7 @@
|
|||
android:padding="1dp"
|
||||
android:src="@drawable/ic_public_room"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/roomToolbarAvatarImageView"
|
||||
app:layout_constraintCircle="@id/roomToolbarAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
android:id="@+id/roomSettingsDecorationToolbarAvatarImageView"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
app:layout_constraintCircle="@+id/roomSettingsToolbarAvatarImageView"
|
||||
app:layout_constraintCircle="@id/roomSettingsToolbarAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
android:id="@+id/roomUploadsDecorationToolbarAvatarImageView"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
app:layout_constraintCircle="@+id/roomUploadsToolbarAvatarImageView"
|
||||
app:layout_constraintCircle="@id/roomUploadsToolbarAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="20dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
android:minHeight="18dp"
|
||||
android:textColor="?colorOnError"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/breadcrumbsImageView"
|
||||
app:layout_constraintCircle="@id/breadcrumbsImageView"
|
||||
app:layout_constraintCircleAngle="45"
|
||||
app:layout_constraintCircleRadius="28dp"
|
||||
tools:background="@drawable/bg_unread_highlight"
|
||||
|
@ -66,7 +66,7 @@
|
|||
android:textColor="?colorOnPrimary"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/breadcrumbsImageView"
|
||||
app:layout_constraintCircle="@id/breadcrumbsImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="28dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
@ -81,7 +81,7 @@
|
|||
android:padding="3dp"
|
||||
android:src="@drawable/ic_edit"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/breadcrumbsImageView"
|
||||
app:layout_constraintCircle="@id/breadcrumbsImageView"
|
||||
app:layout_constraintCircleAngle="225"
|
||||
app:layout_constraintCircleRadius="28dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
android:scaleType="center"
|
||||
android:src="@drawable/ic_delete"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/itemEditableAvatarImageContainer"
|
||||
app:layout_constraintCircle="@id/itemEditableAvatarImageContainer"
|
||||
app:layout_constraintCircleAngle="45"
|
||||
app:layout_constraintCircleRadius="48dp"
|
||||
app:tint="?colorError"
|
||||
|
@ -57,7 +57,7 @@
|
|||
android:contentDescription="@string/a11y_change_avatar"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_camera_plain"
|
||||
app:layout_constraintCircle="@+id/itemEditableAvatarImageContainer"
|
||||
app:layout_constraintCircle="@id/itemEditableAvatarImageContainer"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="48dp"
|
||||
app:tint="?vctr_content_secondary"
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
android:importantForAccessibility="no"
|
||||
android:padding="2dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/matrixItemAvatar"
|
||||
app:layout_constraintCircle="@id/matrixItemAvatar"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="16dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
android:id="@+id/matrixItemAvatarDecoration"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
app:layout_constraintCircle="@+id/matrixItemAvatar"
|
||||
app:layout_constraintCircle="@id/matrixItemAvatar"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="16dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
android:paddingEnd="4dp"
|
||||
android:textColor="?colorOnError"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/groupAvatarImageView"
|
||||
app:layout_constraintCircle="@id/groupAvatarImageView"
|
||||
app:layout_constraintCircleAngle="45"
|
||||
app:layout_constraintCircleRadius="24dp"
|
||||
tools:background="@drawable/bg_unread_highlight"
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
android:paddingEnd="4dp"
|
||||
android:textColor="?colorOnError"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/groupAvatarImageView"
|
||||
app:layout_constraintCircle="@id/groupAvatarImageView"
|
||||
app:layout_constraintCircleAngle="45"
|
||||
app:layout_constraintCircleRadius="14dp"
|
||||
tools:background="@drawable/bg_unread_highlight"
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
app:iconPadding="0dp"
|
||||
app:iconSize="20dp"
|
||||
app:iconTint="?vctr_content_primary"
|
||||
app:layout_constraintCircle="@+id/creationTileRoomAvatarImageView"
|
||||
app:layout_constraintCircle="@id/creationTileRoomAvatarImageView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="34dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
android:importantForAccessibility="no"
|
||||
android:padding="3dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/memberProfileAvatarView"
|
||||
app:layout_constraintCircle="@id/memberProfileAvatarView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="64dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
android:importantForAccessibility="no"
|
||||
android:padding="3dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/roomProfileAvatarView"
|
||||
app:layout_constraintCircle="@id/roomProfileAvatarView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="64dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
@ -44,7 +44,7 @@
|
|||
android:padding="2dp"
|
||||
android:src="@drawable/ic_public_room"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintCircle="@+id/roomProfileAvatarView"
|
||||
app:layout_constraintCircle="@id/roomProfileAvatarView"
|
||||
app:layout_constraintCircleAngle="135"
|
||||
app:layout_constraintCircleRadius="64dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
|
|
Loading…
Reference in a new issue