textSize *sp -> style

This commit is contained in:
Benoit Marty 2021-06-15 10:30:54 +02:00
parent c248670750
commit f0b28742ac
39 changed files with 113 additions and 87 deletions

View file

@ -95,6 +95,14 @@ ${searchForbiddenStringsScript} ./tools/check/forbidden_strings_in_resources.txt
resultForbiddenStringInResource=$? resultForbiddenStringInResource=$?
echo
echo "Search for forbidden patterns in layouts..."
${searchForbiddenStringsScript} ./tools/check/forbidden_strings_in_layout.txt \
./vector/src/main/res/layout
resultForbiddenStringInLayout=$?
####################################################################################################################### #######################################################################################################################
# Check files with long lines # Check files with long lines
####################################################################################################################### #######################################################################################################################
@ -156,7 +164,13 @@ fi
echo echo
if [[ ${resultNbOfDrawable} -eq 0 ]] && [[ ${resultForbiddenStringInCode} -eq 0 ]] && [[ ${resultForbiddenStringInCodeSdk} -eq 0 ]] && [[ ${resultForbiddenStringInResource} -eq 0 ]] && [[ ${resultLongFiles} -eq 0 ]] && [[ ${resultPngInDrawable} -eq 0 ]]; then if [[ ${resultNbOfDrawable} -eq 0 ]] \
&& [[ ${resultForbiddenStringInCode} -eq 0 ]] \
&& [[ ${resultForbiddenStringInCodeSdk} -eq 0 ]] \
&& [[ ${resultForbiddenStringInResource} -eq 0 ]] \
&& [[ ${resultForbiddenStringInLayout} -eq 0 ]] \
&& [[ ${resultLongFiles} -eq 0 ]] \
&& [[ ${resultPngInDrawable} -eq 0 ]]; then
echo "MAIN OK" echo "MAIN OK"
else else
echo "❌ MAIN ERROR" echo "❌ MAIN ERROR"

View file

@ -0,0 +1,27 @@
#
# Copyright 2021 New Vector Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file list String which are not allowed in source code.
# Use Perl regex to write forbidden strings
# Note: line cannot start with a space. Use \s instead.
# It is possible to specify an authorized number of occurrence with === suffix. Default is 0
# Example:
# AuthorizedStringThreeTimes===3
# Extension:xml
### Use style="@style/VectorTextView.*" instead of textSize attribute
android:textSize===9

View file

@ -22,11 +22,11 @@
<TextView <TextView
android:id="@+id/sas_emoji" android:id="@+id/sas_emoji"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:textColor="@color/emoji_color" android:textColor="@color/emoji_color"
android:textSize="22sp"
tools:text="🔧" /> tools:text="🔧" />
<LinearLayout <LinearLayout

View file

@ -98,6 +98,7 @@
<TextView <TextView
android:id="@+id/participantNameText" android:id="@+id/participantNameText"
style="@style/VectorTextView.Title"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_horizontal_margin" android:layout_marginStart="@dimen/layout_horizontal_margin"
@ -105,7 +106,6 @@
android:layout_marginEnd="@dimen/layout_horizontal_margin" android:layout_marginEnd="@dimen/layout_horizontal_margin"
android:gravity="center" android:gravity="center"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -31,17 +31,18 @@
<TextView <TextView
android:id="@+id/bootstrapTitleText" android:id="@+id/bootstrapTitleText"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:ellipsize="end" android:ellipsize="end"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/bootstrapIcon"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/bootstrapIcon" app:layout_constraintStart_toEndOf="@+id/bootstrapIcon"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="@id/bootstrapIcon"
tools:text="@string/bottom_sheet_setup_secure_backup_title" /> tools:text="@string/bottom_sheet_setup_secure_backup_title" />
<androidx.fragment.app.FragmentContainerView <androidx.fragment.app.FragmentContainerView

View file

@ -16,13 +16,13 @@
<TextView <TextView
android:id="@+id/callDialPadTitle" android:id="@+id/callDialPadTitle"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="@string/call_dial_pad_title" android:text="@string/call_dial_pad_title"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary" />
android:textSize="20sp" />
<ImageView <ImageView
android:id="@+id/callDialPadClose" android:id="@+id/callDialPadClose"

View file

@ -11,6 +11,7 @@
<TextView <TextView
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_horizontal_margin" android:layout_marginStart="@dimen/layout_horizontal_margin"
@ -18,7 +19,6 @@
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:text="@string/room_widget_permission_title" android:text="@string/room_widget_permission_title"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView

View file

@ -10,22 +10,22 @@
android:paddingBottom="8dp"> android:paddingBottom="8dp">
<TextView <TextView
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/keys_backup_setup_step3_copy_button_title" android:text="@string/keys_backup_setup_step3_copy_button_title"
android:textAlignment="center" android:textAlignment="center"
android:textSize="17sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:id="@+id/keys_backup_recovery_key_text" android:id="@+id/keys_backup_recovery_key_text"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_margin="@dimen/layout_horizontal_margin" android:layout_margin="@dimen/layout_horizontal_margin"
android:fontFamily="monospace" android:fontFamily="monospace"
android:textAlignment="center" android:textAlignment="center"
android:textSize="20sp"
tools:text="HHWJ Y8DK RDR4\nBQEN FQ4V M4F8\nBQEN FQ4V M4A8" /> tools:text="HHWJ Y8DK RDR4\nBQEN FQ4V M4F8\nBQEN FQ4V M4A8" />
<LinearLayout <LinearLayout
@ -52,11 +52,12 @@
tools:ignore="MissingPrefix" /> tools:ignore="MissingPrefix" />
<TextView <TextView
style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:text="@string/keys_backup_setup_step3_share_recovery_file" android:text="@string/keys_backup_setup_step3_share_recovery_file"
android:textSize="17sp" /> android:textColor="?vctr_content_primary" />
</LinearLayout> </LinearLayout>
@ -84,11 +85,12 @@
tools:ignore="MissingPrefix" /> tools:ignore="MissingPrefix" />
<TextView <TextView
style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:text="@string/keys_backup_setup_step3_save_button_title" android:text="@string/keys_backup_setup_step3_save_button_title"
android:textSize="17sp" /> android:textColor="?vctr_content_primary" />
</LinearLayout> </LinearLayout>

View file

@ -38,6 +38,7 @@
<TextView <TextView
android:id="@+id/otherUserNameText" android:id="@+id/otherUserNameText"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
@ -45,8 +46,8 @@
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/otherUserAvatarImageView"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/otherUserAvatarImageView" app:layout_constraintStart_toEndOf="@+id/otherUserAvatarImageView"
app:layout_constraintTop_toTopOf="@+id/otherUserAvatarImageView" app:layout_constraintTop_toTopOf="@+id/otherUserAvatarImageView"

View file

@ -24,12 +24,12 @@
<TextView <TextView
android:id="@+id/cart_badge" android:id="@+id/cart_badge"
android:layout_width="12dp" style="@style/VectorTextView.Micro"
android:layout_height="12dp" android:layout_width="14dp"
android:layout_height="14dp"
android:background="@drawable/bg_unread_highlight" android:background="@drawable/bg_unread_highlight"
android:gravity="center" android:gravity="center"
android:textColor="?colorOnError" android:textColor="?colorOnError"
android:textSize="8sp"
app:layout_constraintCircle="@+id/action_view_icon_image" app:layout_constraintCircle="@+id/action_view_icon_image"
app:layout_constraintCircleAngle="45" app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="12dp" app:layout_constraintCircleRadius="12dp"

View file

@ -41,11 +41,11 @@
<TextView <TextView
android:id="@+id/disclaimerTextView" android:id="@+id/disclaimerTextView"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/disclaimer_title" android:text="@string/disclaimer_title"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -1,14 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/event_content_text_view" android:id="@+id/event_content_text_view"
style="@style/VectorTextView.Caption"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="5dp" android:layout_margin="5dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:textColor="?vctr_content_primary"
android:textIsSelectable="true" android:textIsSelectable="true"
android:textSize="12sp" /> tools:text="Event content" />
</ScrollView> </ScrollView>

View file

@ -34,6 +34,7 @@
<TextView <TextView
android:id="@+id/bootstrapTitleText" android:id="@+id/bootstrapTitleText"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
@ -42,7 +43,6 @@
android:maxLines="2" android:maxLines="2"
android:text="@string/keep_it_safe" android:text="@string/keep_it_safe"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" /> android:textStyle="bold" />
</LinearLayout> </LinearLayout>

View file

@ -77,19 +77,19 @@
<TextView <TextView
android:id="@+id/groupToolbarTitleView" android:id="@+id/groupToolbarTitleView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:gravity="start" android:gravity="start"
android:maxLines="1" android:maxLines="1"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="@tools:sample/lorem/random" /> tools:text="@tools:sample/lorem/random" />
<TextView <TextView
android:id="@+id/groupToolbarSpaceTitleView" android:id="@+id/groupToolbarSpaceTitleView"
style="@style/VectorTextView.Body" style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"

View file

@ -21,12 +21,12 @@
<TextView <TextView
android:id="@+id/success_text" android:id="@+id/success_text"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="16dp" android:layout_margin="16dp"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -15,6 +15,7 @@
<TextView <TextView
android:id="@+id/keys_backup_setup_step2_text_title" android:id="@+id/keys_backup_setup_step2_text_title"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
@ -24,7 +25,6 @@
android:text="@string/keys_backup_setup_step2_text_title" android:text="@string/keys_backup_setup_step2_text_title"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="17sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -27,6 +27,7 @@
<TextView <TextView
android:id="@+id/keys_backup_setup_step3_success_title" android:id="@+id/keys_backup_setup_step3_success_title"
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/layout_horizontal_margin" android:layout_marginStart="@dimen/layout_horizontal_margin"
@ -35,7 +36,6 @@
android:text="@string/keys_backup_setup_step3_success_title" android:text="@string/keys_backup_setup_step3_success_title"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="17sp"
android:textStyle="bold" android:textStyle="bold"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible" /> tools:visibility="visible" />
@ -68,13 +68,13 @@
<TextView <TextView
android:id="@+id/keys_backup_setup_step3_recovery_key_text" android:id="@+id/keys_backup_setup_step3_recovery_key_text"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/layout_horizontal_margin" android:layout_margin="@dimen/layout_horizontal_margin"
android:fontFamily="monospace" android:fontFamily="monospace"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:visibility="gone" android:visibility="gone"
tools:text="HHWJ Y8DK RDR4\nBQEN FQ4V M4F8\nBQEN FQ4V M4A8" tools:text="HHWJ Y8DK RDR4\nBQEN FQ4V M4F8\nBQEN FQ4V M4A8"
tools:visibility="visible" /> tools:visibility="visible" />

View file

@ -13,12 +13,12 @@
<TextView <TextView
android:id="@+id/headerText" android:id="@+id/headerText"
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:text="@string/create_spaces_who_are_you_working_with" android:text="@string/create_spaces_who_are_you_working_with"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

View file

@ -21,13 +21,13 @@
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
style="@style/VectorTextView.Title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:gravity="center" android:gravity="center"
android:text="@string/create_spaces_choose_type_label" android:text="@string/create_spaces_choose_type_label"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@id/joinInfoHelpText" app:layout_constraintBottom_toTopOf="@id/joinInfoHelpText"
app:layout_constraintTop_toBottomOf="@id/headerText" app:layout_constraintTop_toBottomOf="@id/headerText"

View file

@ -25,6 +25,7 @@
<TextView <TextView
android:id="@+id/ssss_restore_with_key" android:id="@+id/ssss_restore_with_key"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
@ -32,7 +33,6 @@
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:text="@string/recovery_key" android:text="@string/recovery_key"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/ssss_shield" app:layout_constraintStart_toEndOf="@id/ssss_shield"

View file

@ -27,13 +27,13 @@
<TextView <TextView
android:id="@+id/ssss_restore_with_passphrase" android:id="@+id/ssss_restore_with_passphrase"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:text="@string/recovery_passphrase" android:text="@string/recovery_passphrase"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/ssss_shield" app:layout_constraintStart_toEndOf="@id/ssss_shield"

View file

@ -12,6 +12,7 @@
<TextView <TextView
android:id="@+id/reset_title" android:id="@+id/reset_title"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
@ -19,7 +20,6 @@
android:drawablePadding="8dp" android:drawablePadding="8dp"
android:text="@string/secure_backup_reset_all" android:text="@string/secure_backup_reset_all"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
android:tint="?vctr_content_primary" android:tint="?vctr_content_primary"
app:drawableStartCompat="@drawable/ic_alert_triangle" app:drawableStartCompat="@drawable/ic_alert_triangle"
@ -43,6 +43,7 @@
<TextView <TextView
android:id="@+id/ssss_reset_other_devices" android:id="@+id/ssss_reset_other_devices"
style="@style/VectorTextView.Subtitle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
@ -51,7 +52,6 @@
android:drawablePadding="8dp" android:drawablePadding="8dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_secondary"
android:textSize="17sp"
android:visibility="gone" android:visibility="gone"
app:drawableStartCompat="@drawable/ic_smartphone" app:drawableStartCompat="@drawable/ic_smartphone"
app:drawableTint="?vctr_content_secondary" app:drawableTint="?vctr_content_secondary"

View file

@ -20,12 +20,5 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_gravity="center" /> android:layout_gravity="center" />
<!--<TextView-->
<!--android:layout_gravity="center"-->
<!--android:id="@+id/grid_item_emoji_text"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--tools:text="😀"-->
<!--android:textSize="24sp"-->
<!--/>-->
</FrameLayout> </FrameLayout>

View file

@ -10,11 +10,11 @@
<TextView <TextView
android:id="@+id/itemAutocompleteEmoji" android:id="@+id/itemAutocompleteEmoji"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:textColor="@color/emoji_color" android:textColor="@color/emoji_color"
android:textSize="20dp"
tools:ignore="SpUsage" tools:ignore="SpUsage"
tools:text="@sample/reactions.json/data/reaction" /> tools:text="@sample/reactions.json/data/reaction" />

View file

@ -53,6 +53,7 @@
<TextView <TextView
android:id="@+id/actionTitle" android:id="@+id/actionTitle"
style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
@ -60,8 +61,7 @@
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_secondary"
android:textSize="17sp" tools:drawableEnd="@drawable/ic_expand_more"
tools:drawableEnd="@drawable/ic_material_expand_more_black"
tools:drawableTint="?vctr_content_secondary" tools:drawableTint="?vctr_content_secondary"
tools:text="kdqsksqdk" /> tools:text="kdqsksqdk" />

View file

@ -9,83 +9,74 @@
<TextView <TextView
android:id="@+id/quickReaction0" android:id="@+id/quickReaction0"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="👍" /> tools:text="👍" />
<TextView <TextView
android:id="@+id/quickReaction1" android:id="@+id/quickReaction1"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="👎" /> tools:text="👎" />
<TextView <TextView
android:id="@+id/quickReaction2" android:id="@+id/quickReaction2"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="😀" /> tools:text="😀" />
<TextView <TextView
android:id="@+id/quickReaction3" android:id="@+id/quickReaction3"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="🎉" /> tools:text="🎉" />
<TextView <TextView
android:id="@+id/quickReaction4" android:id="@+id/quickReaction4"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="😕" /> tools:text="😕" />
<TextView <TextView
android:id="@+id/quickReaction5" android:id="@+id/quickReaction5"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="♥" /> tools:text="♥" />
<TextView <TextView
android:id="@+id/quickReaction6" android:id="@+id/quickReaction6"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="24sp"
tools:ignore="MissingConstraints"
tools:text="🍆" /> tools:text="🍆" />
<TextView <TextView
android:id="@+id/quickReaction7" android:id="@+id/quickReaction7"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="4dp" android:padding="4dp"
android:textColor="?vctr_content_secondary" android:textColor="@color/emoji_black"
android:textSize="26sp"
tools:ignore="MissingConstraints"
tools:text="👀" /> tools:text="👀" />
<androidx.constraintlayout.helper.widget.Flow <androidx.constraintlayout.helper.widget.Flow

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/createDirectRoomLetterView" android:id="@+id/createDirectRoomLetterView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:padding="8dp" android:padding="8dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
tools:text="C" /> tools:text="C" />

View file

@ -11,14 +11,13 @@
android:paddingStart="@dimen/layout_horizontal_margin" android:paddingStart="@dimen/layout_horizontal_margin"
android:paddingEnd="@dimen/layout_horizontal_margin"> android:paddingEnd="@dimen/layout_horizontal_margin">
<!-- size in dp, because we do not want the display to be impacted by font size setting -->
<TextView <TextView
android:id="@+id/item_emoji_tv" android:id="@+id/item_emoji_tv"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:textColor="@color/emoji_color" android:textColor="@color/emoji_color"
android:textSize="25dp"
tools:ignore="SpUsage" tools:ignore="SpUsage"
tools:text="@sample/reactions.json/data/reaction" /> tools:text="@sample/reactions.json/data/reaction" />

View file

@ -10,6 +10,7 @@
<!-- size in dp, because we do not want the display to be impacted by font size setting --> <!-- size in dp, because we do not want the display to be impacted by font size setting -->
<TextView <TextView
android:id="@+id/item_emoji_tv" android:id="@+id/item_emoji_tv"
style="@style/VectorTextView.Title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"

View file

@ -2,6 +2,7 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemProfileSectionView" android:id="@+id/itemProfileSectionView"
style="@style/VectorTextView.Title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="56dp"
android:background="?vctr_list_separator_system" android:background="?vctr_list_separator_system"
@ -10,7 +11,6 @@
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:paddingBottom="8dp" android:paddingBottom="8dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="Security" /> tools:text="Security" />

View file

@ -43,6 +43,7 @@
<TextView <TextView
android:id="@+id/itemPublicRoomTopic" android:id="@+id/itemPublicRoomTopic"
style="@style/VectorTextView.Body"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
@ -51,7 +52,6 @@
android:maxLines="1" android:maxLines="1"
android:singleLine="true" android:singleLine="true"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="15sp"
android:visibility="gone" android:visibility="gone"
app:layout_constraintBottom_toTopOf="@+id/itemPublicRoomMembersCount" app:layout_constraintBottom_toTopOf="@+id/itemPublicRoomMembersCount"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View file

@ -8,11 +8,11 @@
<TextView <TextView
android:id="@+id/pushGatewayKind" android:id="@+id/pushGatewayKind"
style="@style/VectorTextView.HeadlineM"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:textAllCaps="true" android:textAllCaps="true"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
tools:text="Http Pusher" /> tools:text="Http Pusher" />

View file

@ -63,12 +63,12 @@
<TextView <TextView
android:id="@+id/roomNameTileText" android:id="@+id/roomNameTileText"
style="@style/VectorTextView.Title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/userDirectoryLetterView" android:id="@+id/userDirectoryLetterView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:padding="8dp" android:padding="8dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
tools:text="C" /> tools:text="C" />

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/userListHeaderView" android:id="@+id/userListHeaderView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:padding="8dp" android:padding="8dp"
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="20sp"
tools:text="Recents | Contacts" /> tools:text="Recents | Contacts" />

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemVerificationDecimalCode" android:id="@+id/itemVerificationDecimalCode"
style="@style/VectorTextView.Title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
@ -11,8 +11,4 @@
android:textColor="?vctr_content_primary" android:textColor="?vctr_content_primary"
android:textSize="28sp" android:textSize="28sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/sas_emoji_grid"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/sas_emoji_grid"
tools:text="1234-4320-3905" /> tools:text="1234-4320-3905" />

View file

@ -32,12 +32,12 @@
<TextView <TextView
android:id="@+id/actionTitleText" android:id="@+id/actionTitleText"
style="@style/VectorTextView.HeadlineM"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:text="@string/secure_backup_setup" android:text="@string/secure_backup_setup"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_primary" />
android:textSize="17sp" />
</LinearLayout> </LinearLayout>

View file

@ -41,11 +41,11 @@
<TextView <TextView
android:id="@+id/memberProfileNameView" android:id="@+id/memberProfileNameView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:textAppearance="@style/Vector.Toolbar.Title" android:textAppearance="@style/Vector.Toolbar.Title"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/memberProfileIdView" app:layout_constraintBottom_toTopOf="@+id/memberProfileIdView"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View file

@ -31,11 +31,11 @@
<TextView <TextView
android:id="@+id/roomProfileNameView" android:id="@+id/roomProfileNameView"
style="@style/VectorTextView.HeadlineM"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:textAppearance="@style/Vector.Toolbar.Title" android:textAppearance="@style/Vector.Toolbar.Title"
android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/roomProfileAliasView" app:layout_constraintBottom_toTopOf="@+id/roomProfileAliasView"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"