Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between layout-finger and layout directory

Tags:

android

In android, there are different sub-directory under 'res'

  • layout
  • layout-finger
  • layout-land-finger

Can somebody please explain what are the difference between these directories?

Thank you

like image 228
n179911 Avatar asked Nov 04 '09 23:11

n179911


1 Answers

The official explanation is in the SDK documentation. Assuming that these three are the only layout resource directories:

  • Layouts in res/layout-land-finger/ will be used if the device has a finger-friendly touchscreen (i.e., capacitive, versus a resistive touchscreen or no touchscreen) and is being held in landscape orientation.
  • Layouts in res/layout-finger/ will be used if the device has a finger-friendly touchscreen and is not being held in landscape orientation.
  • Layouts in res/layout/ will be used if the device has a resistive or no touchscreen
like image 110
CommonsWare Avatar answered Oct 20 '22 20:10

CommonsWare