1 / 9

Contents

Contents. 학습목표. 가장 기본적인 위젯인 TextView 를 통해 위젯의 일반적인 특징과 프로그래밍 방법을 상세하게 연구해보고 버튼의 사용 방법을 익힌다 . 학습내용. 리소스 텍스트 뷰 버튼 이미지 뷰. 8.4.1 확대 모드. . scaleType : 이미지 뷰와 이미지 크기가 일치 하지 않을 때 이미지를 어떤 방식으로 확대 , 축소할지를 지정한다 . 8.4.1 확대 모드 – scaleType 예제. 8.4.1 확대 모드 – scaleType 예제.

dayo
Download Presentation

Contents

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Contents 학습목표 • 가장 기본적인 위젯인TextView를 통해 위젯의 일반적인 특징과 프로그래밍 방법을 상세하게 연구해보고 버튼의 사용 방법을 익힌다. 학습내용 리소스 텍스트 뷰 버튼 이미지 뷰

  2. 8.4.1 확대 모드 • .scaleType :이미지 뷰와 이미지 크기가 일치 하지 않을 때 이미지를 어떤 방식으로 확대, 축소할지를 지정한다.

  3. 8.4.1 확대 모드 – scaleType예제

  4. 8.4.1 확대 모드 – scaleType예제

  5. 8.4.1 확대 모드 – scaleType예제

  6. 8.4.1 확대 모드 – 예제2 cropToPadding : 이미지를 잘라야 할 때 여백(padding)에서 자를 것인가 아니면 여백을 무시하고 바깥 영역까지 최대한 활용할 것인가 지정 adjustViewBounds : 뷰의 크기를 강제로 조정할 지 결정

  7. 8.4.2 이미지 버튼 • ImageButton은 버튼 대용으로 쓸 수 있는 위젯으로 ImageView의 서브클래스. • 표면에 이미지를 표시할 수 있으며 상태에 따라 다른 이미지를 보여주는 것도 가능하다. • 텍스트는 출력할 수 없으며 이미지만 표시할 수 있다. • Bitmap객체를 표면에 바로 출력할 수 있는 능력이 있다.

  8. 8.4.1 확대 모드

More Related