mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Ignore font scaling for payload text size
This prevents splitting hexdump lines on most devices
This commit is contained in:
parent
46af0e6fc1
commit
2cb44daddb
@ -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: */*"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user