Ignore font scaling for payload text size

This prevents splitting hexdump lines on most devices
This commit is contained in:
emanuele-f 2022-05-18 12:19:53 +02:00
parent 46af0e6fc1
commit 2cb44daddb

View File

@ -47,6 +47,7 @@
tools:background="@color/sentPayloadBg">
<!-- Keep layout_width to "wrap_content" or text selection will fail in some cases (Android bug?) -->
<!-- Use dp to get a consistent size across devices: prevents splitting hexdump lines -->
<TextView
android:id="@+id/dump"
android:layout_width="wrap_content"
@ -55,7 +56,7 @@
android:textIsSelectable="true"
android:fontFamily="@font/sourcecodepro_regular"
android:textDirection="ltr"
android:textSize="9sp"
android:textSize="9dp"
android:textStyle="bold"
android:focusable="true"
tools:text="GET / HTTP/1.1\nHost: example.org\nAccept: */*"/>