Android(안드로이드)
[Android] TextView에서 가로(수평)선 그리기
주빠
2022. 11. 6. 07:22
> 주제
TextView에서 가로(수평)선 그리기
> 환경
OS:
Windows 10 Home
안드로이드 스튜디오 버전:
Android Studio Chipmunk | 2021.2.1
> 방법
레이아웃의 높이를 1로 부여하면 된다.
android:layout_height="1dp"
<TextView
android:id="@+id/tvLine"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/black"
tools:ignore="MissingConstraints" />