commit | 61d38d302da83d91c87a97823b8b088d7908e6cc | [log] [tgz] |
---|---|---|
author | Paul Soulos <psoulos@google.com> | Wed Feb 10 11:19:30 2016 -0800 |
committer | Paul Soulos <psoulos@google.com> | Wed Feb 10 15:50:25 2016 -0800 |
tree | 86209b8ff14fbc147495afca86959cd4e8e876af | |
parent | 89c7954a20e1584c217354338c729345587944fa [diff] |
Adjust ViewDragHelper to better support watches. ViewDragHelper hard-codes the edge size to 20dp for all devices. On watches, this is too small. Watches should define the edge size as a percentage of the screen height. This introduces a new method ViewDragHelper.refreshEdgeSize() to calculate the edge size. For phones, this will continue being 20dp, but for watches edge size will be calculated. Change-Id: I2d8521fab702d447b63b8508634230a5699e1a43