Skip to content

touchMargin

ZieIony edited this page Apr 5, 2015 · 3 revisions

carbon_touchMargin

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:

touch margin

Clone this wiki locally