-
Notifications
You must be signed in to change notification settings - Fork 376
touchMargin
ZieIony edited this page Apr 5, 2015
·
3 revisions
Methods: View.get/setTouchMargin(Rect), View.setTouchMargin(int,int,int,int)
Type: dimension
Used for specifying additional touch margin. Each view with touch margin will be touchable outside its bounds (only inside its direct parent). Does not affect view's layouting. It's possible to set margins on selected edges using carbon_touchMarginTop
, carbon_touchMarginBottom
, carbon_touchMarginLeft
, carbon_touchMarginRight
.
Can be used to create a touch target as described in Material Design guidelines:
Copyright 2015 Marcin Korniluk 'Zielony'