Android Text out of the screen on ConstraintView

사용 버전: Android Studio 4.1
사용 언어: Kotlin 1.4.10

안드로이드 Text out of screen on ConstraintView를 해보겠습니다.


가끔 ConstraintView를 사용하다보면, 글자 크기가 커지거나 길이가 길어져서 화면을 벗어나는 경우가 있습니다.
layout_width가 wrap_content인 경우에 발생됩니다.







app:layout_constrainedWidth="true"를 추가해줍니다.

width를 사용한 이유는 가로로 화면에서 사라지기 때문입니다.








실행해 봅시다.





잘리지 않고 화면에 전부 나온것을 확인할 수 있습니다.



끝.



카테고리: Android

댓글

이 블로그의 인기 게시물

Python OpenCV 빈 화면 만들기

Python urllib.parse.quote()

Python bytes.fromhex()

Android AVD Ram size change

Forensics .pyc 파일 .py로 복구하기

Android Minimum touch target size

KiCad 시작하기 7 (FreeRoute 사용하기 2)

Android Notification with Full Screen

C++ OpenCV 모폴로지 침식, 팽창

KiCad 시작하기 2 (PCB 만들기)