最終更新:2013-10-03 (木) 09:28:37 (3855d)  

TOUCH_SLOP
Top / TOUCH_SLOP

まえはjavaのハードコードの値が使われていたけどXMLから取得するようになっているっぽい。

/**
 * Distance a touch can wander before we think the user is scrolling in dips.
 * Note that this value defined here is only used as a fallback by legacy/misbehaving
 * applications that do not provide a Context for determining density/configuration-dependent
 * values.
 *
 * To alter this value, see the configuration resource config_viewConfigurationTouchSlop
 * in frameworks/base/core/res/res/values/config.xml or the appropriate device resource overlay.
 * It may be appropriate to tweak this on a device-specific basis in an overlay based on
 * the characteristics of the touch panel and firmware.
 */
private static final int TOUCH_SLOP = 8;

関連