SlideShare a Scribd company logo
1 of 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

More Related Content

More from 운용 최

21 application and_network_status
21 application and_network_status21 application and_network_status
21 application and_network_status운용 최
 
20 handler and_async_task
20 handler and_async_task20 handler and_async_task
20 handler and_async_task운용 최
 
18 안드로이드 리스트뷰_속도향상
18 안드로이드 리스트뷰_속도향상18 안드로이드 리스트뷰_속도향상
18 안드로이드 리스트뷰_속도향상운용 최
 
19 나만의 view 만들기
19 나만의 view 만들기19 나만의 view 만들기
19 나만의 view 만들기운용 최
 
17 adapter view & db
17 adapter view & db17 adapter view & db
17 adapter view & db운용 최
 
16 데이터 저장과 사용
16 데이터 저장과 사용16 데이터 저장과 사용
16 데이터 저장과 사용운용 최
 
15 content provider
15 content provider15 content provider
15 content provider운용 최
 
14 broad castreceiver
14 broad castreceiver14 broad castreceiver
14 broad castreceiver운용 최
 
10 view orientation_change
10 view orientation_change10 view orientation_change
10 view orientation_change운용 최
 
09 android keyboard & layout
09 android keyboard & layout09 android keyboard & layout
09 android keyboard & layout운용 최
 
08 fragment 태블릿 대응
08 fragment   태블릿 대응08 fragment   태블릿 대응
08 fragment 태블릿 대응운용 최
 
07 다양한 device_대응_방법
07 다양한 device_대응_방법07 다양한 device_대응_방법
07 다양한 device_대응_방법운용 최
 
06 activity stack and back, flag
06 activity stack and back, flag06 activity stack and back, flag
06 activity stack and back, flag운용 최
 
05 pending intent
05 pending intent05 pending intent
05 pending intent운용 최
 
04 activity간에 호출하기 & intent
04 activity간에 호출하기 & intent04 activity간에 호출하기 & intent
04 activity간에 호출하기 & intent운용 최
 
03 activity.finish
03 activity.finish03 activity.finish
03 activity.finish운용 최
 
02 activity.lifecycle
02 activity.lifecycle02 activity.lifecycle
02 activity.lifecycle운용 최
 
안드로이드 로그 파일로 남기기
안드로이드 로그 파일로 남기기안드로이드 로그 파일로 남기기
안드로이드 로그 파일로 남기기운용 최
 
다양한 Device 대응_방법
다양한 Device 대응_방법다양한 Device 대응_방법
다양한 Device 대응_방법운용 최
 

More from 운용 최 (20)

21 application and_network_status
21 application and_network_status21 application and_network_status
21 application and_network_status
 
20 handler and_async_task
20 handler and_async_task20 handler and_async_task
20 handler and_async_task
 
18 안드로이드 리스트뷰_속도향상
18 안드로이드 리스트뷰_속도향상18 안드로이드 리스트뷰_속도향상
18 안드로이드 리스트뷰_속도향상
 
19 나만의 view 만들기
19 나만의 view 만들기19 나만의 view 만들기
19 나만의 view 만들기
 
17 adapter view & db
17 adapter view & db17 adapter view & db
17 adapter view & db
 
16 데이터 저장과 사용
16 데이터 저장과 사용16 데이터 저장과 사용
16 데이터 저장과 사용
 
15 content provider
15 content provider15 content provider
15 content provider
 
14 broad castreceiver
14 broad castreceiver14 broad castreceiver
14 broad castreceiver
 
10 view orientation_change
10 view orientation_change10 view orientation_change
10 view orientation_change
 
09 android keyboard & layout
09 android keyboard & layout09 android keyboard & layout
09 android keyboard & layout
 
08 fragment 태블릿 대응
08 fragment   태블릿 대응08 fragment   태블릿 대응
08 fragment 태블릿 대응
 
08 font size
08 font size08 font size
08 font size
 
07 다양한 device_대응_방법
07 다양한 device_대응_방법07 다양한 device_대응_방법
07 다양한 device_대응_방법
 
06 activity stack and back, flag
06 activity stack and back, flag06 activity stack and back, flag
06 activity stack and back, flag
 
05 pending intent
05 pending intent05 pending intent
05 pending intent
 
04 activity간에 호출하기 & intent
04 activity간에 호출하기 & intent04 activity간에 호출하기 & intent
04 activity간에 호출하기 & intent
 
03 activity.finish
03 activity.finish03 activity.finish
03 activity.finish
 
02 activity.lifecycle
02 activity.lifecycle02 activity.lifecycle
02 activity.lifecycle
 
안드로이드 로그 파일로 남기기
안드로이드 로그 파일로 남기기안드로이드 로그 파일로 남기기
안드로이드 로그 파일로 남기기
 
다양한 Device 대응_방법
다양한 Device 대응_방법다양한 Device 대응_방법
다양한 Device 대응_방법
 

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