mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Adjust sizes for text post text size.
This commit is contained in:
committed by
Greyson Parrelli
parent
83c3b16b92
commit
6497ec8098
@@ -25,7 +25,7 @@ class TextStoryTextWatcher private constructor(private val textView: TextView) :
|
||||
breakIteratorCompat.setText(textView.text)
|
||||
val length = breakIteratorCompat.countBreaks()
|
||||
val expectedTextSize = when {
|
||||
length < 50 -> 36f
|
||||
length < 50 -> 34f
|
||||
length < 200 -> 24f
|
||||
else -> 18f
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
android:paddingBottom="13dp"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
||||
android:textColor="@color/core_white"
|
||||
android:textSize="36dp"
|
||||
android:textSize="34dp"
|
||||
tools:ignore="SpUsage"
|
||||
tools:text="THIS IS SOME TEXT THAT I AM ENTERING" />
|
||||
</FrameLayout>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
android:text="@string/TextStoryPostCreationFragment__tap_to_add_text"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
||||
android:textColor="@color/core_white"
|
||||
android:textSize="36dp"
|
||||
android:textSize="34dp"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0"
|
||||
|
||||
Reference in New Issue
Block a user