• Lable (layout.xml)
• 가장 기본적인 위젯 중 하나임
• 안드로이드에서 레이블은 textView 클래스로 구현된다
• 일반 GUI툴킷처럼 레이블은 고정된 텍스트를 화면에 표현


• 지원속성
• android:text=“Hellow Andorid “
=>표시할 글을 지정
• android:typeface="monospace/nomral/scans/serif"
=>글꼴의 종류를 지정한다
• android:textStyle="bold/normal/italc"
=> 글꼴의 굵기를 적용
• android:textColor="#FF0000"
=> 글꼴의 색깔을 16진수로 지정
• Layout.xml 에서 생성함
• “+” 아이콘을 누름
• label 을 만들어 주는 TextView 선택함

• lable 을 생성한 layout.xml

TextView Test 예제 (main.xml)




댓글 없음:
댓글 쓰기