Commit 44d4c3e
committed
[TopAppBar] Correctly set letter spacing when expanding titles
We recreated title text layout when expanding from the collapsed state but didn't correctly set the letter spacing to the expanded one. The letter spacing being used will be a interpolated value between collapsed and expanded letter spacing (close to the collapsed one due to the implementation). This will cause the text layout incorrectly calculate the line count from the wrong letter spacing and result in a broken layout.
Correctly sets the letter spacing to fix the issue.
Resolves #2463
PiperOrigin-RevId: 4089105551 parent 34cce18 commit 44d4c3e
File tree
1 file changed
+11
-1
lines changed- lib/java/com/google/android/material/internal
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
907 | 908 | | |
908 | 909 | | |
909 | 910 | | |
| 911 | + | |
910 | 912 | | |
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
| 916 | + | |
914 | 917 | | |
915 | 918 | | |
916 | 919 | | |
| |||
919 | 922 | | |
920 | 923 | | |
921 | 924 | | |
| 925 | + | |
922 | 926 | | |
923 | 927 | | |
924 | 928 | | |
| |||
953 | 957 | | |
954 | 958 | | |
955 | 959 | | |
956 | | - | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
957 | 963 | | |
| 964 | + | |
958 | 965 | | |
959 | 966 | | |
960 | 967 | | |
961 | 968 | | |
962 | 969 | | |
963 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
964 | 974 | | |
965 | 975 | | |
966 | 976 | | |
| |||
0 commit comments