ݺߣ

ݺߣShare a Scribd company logo
태블릿에 대한 대응 가이드
대응 1. 기본적인 대응 - tablet 에서도 화면이 깨지지 않도록 하는 기본적인 대응 방법들
https://docs.google.com/presentation/d/179TKoY1u6aNlHvVemtKwqco6TNIT1q1iPF-
b08wMhro/edit
대응 2. 텍스트 사이즈 적용 - sp 를 통해서, 사용자가 선택한 옵션에 적합하게 화면 변동되게 대응 (예.
태블릿에서 큰 폰트 보기 경우 원하는 데로 크게 표시하기)
https://docs.google.com/presentation/d/1IWNtmyV3hd-wKiWC14b6an-qnrOt4yZCQPbQSP-
hQwU/edit
대응 3. Fragment 통한 동적인 대응 - 희망을 가졌는데, 결론은 현재로서는 비용이 너무 많이 든다라는
생각.
https://docs.google.com/presentation/d/1nAn1XRJf1PTY5vXu3qf3mc7b9PF3P29Co1a6pejDLeM/ed
it
대응 4. 기기 특성에 대한 동적 layout 파일 적용 - 가장 비용적으로 합리적인 대안.
width 가 600dp 이상이면, tablet 이라고 판단을 해도 무방합니다.
600dp: a 7” tablet (600x1024 mdpi).
720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc)
이에 따라서 우리는 600dp 이상 width 를 가진 resource 에 대해서는 별도 layout (폰트 크기, 화면 구성,
레이아웃 설정을 전혀 다르게)을
지정해서 제공을 할 수 있도록 아래와 같이 resource 를 정의합니다. 예를 들어서 main_activity 가
대상이 되는 화면 정의 layout 경우
아래와 같이 resource 를 배치하고, 정의하면 원하는 대응이 가능합니다.
res/layout/main_activity.xml # For handsets (smaller than 600dp available width)
res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger)
res/layout-sw720dp/main_activity.xml # For 10” tablets (720dp wide and bigger)
참고 자료:
http://developer.android.com/guide/practices/screens_support.html#NewQ
ualifiers

More Related Content

11 tablet 대응 가이드

  • 1. 태블릿에 대한 대응 가이드 대응 1. 기본적인 대응 - tablet 에서도 화면이 깨지지 않도록 하는 기본적인 대응 방법들 https://docs.google.com/presentation/d/179TKoY1u6aNlHvVemtKwqco6TNIT1q1iPF- b08wMhro/edit 대응 2. 텍스트 사이즈 적용 - sp 를 통해서, 사용자가 선택한 옵션에 적합하게 화면 변동되게 대응 (예. 태블릿에서 큰 폰트 보기 경우 원하는 데로 크게 표시하기) https://docs.google.com/presentation/d/1IWNtmyV3hd-wKiWC14b6an-qnrOt4yZCQPbQSP- hQwU/edit 대응 3. Fragment 통한 동적인 대응 - 희망을 가졌는데, 결론은 현재로서는 비용이 너무 많이 든다라는 생각. https://docs.google.com/presentation/d/1nAn1XRJf1PTY5vXu3qf3mc7b9PF3P29Co1a6pejDLeM/ed it 대응 4. 기기 특성에 대한 동적 layout 파일 적용 - 가장 비용적으로 합리적인 대안. width 가 600dp 이상이면, tablet 이라고 판단을 해도 무방합니다. 600dp: a 7” tablet (600x1024 mdpi). 720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc) 이에 따라서 우리는 600dp 이상 width 를 가진 resource 에 대해서는 별도 layout (폰트 크기, 화면 구성, 레이아웃 설정을 전혀 다르게)을 지정해서 제공을 할 수 있도록 아래와 같이 resource 를 정의합니다. 예를 들어서 main_activity 가 대상이 되는 화면 정의 layout 경우 아래와 같이 resource 를 배치하고, 정의하면 원하는 대응이 가능합니다. res/layout/main_activity.xml # For handsets (smaller than 600dp available width) res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger) res/layout-sw720dp/main_activity.xml # For 10” tablets (720dp wide and bigger) 참고 자료: http://developer.android.com/guide/practices/screens_support.html#NewQ ualifiers