Lines Matching refs:button
122 for (ButtonDropTarget button : mDropTargets) { in setInsets()
123 button.setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.dropTargetTextSizePx); in setInsets()
124 button.setToolTipLocation(tooltipLocation); in setInsets()
148 for (ButtonDropTarget button : mDropTargets) { in onMeasure()
149 if (button.getVisibility() != GONE) { in onMeasure()
150 button.setTextVisible(false); in onMeasure()
151 button.measure(widthSpec, heightSpec); in onMeasure()
165 for (ButtonDropTarget button : mDropTargets) { in onMeasure()
166 if (button.getVisibility() != GONE) { in onMeasure()
167 button.setTextVisible(textVisible); in onMeasure()
168 button.measure(widthSpec, heightSpec); in onMeasure()
185 for (ButtonDropTarget button : mDropTargets) { in onLayout()
186 if (button.getVisibility() != GONE) { in onLayout()
187 end = start + button.getMeasuredHeight(); in onLayout()
188 button.layout(0, start, button.getMeasuredWidth(), end); in onLayout()
197 for (ButtonDropTarget button : mDropTargets) { in onLayout()
198 if (button.getVisibility() != GONE) { in onLayout()
199 halfWidth = button.getMeasuredWidth() / 2; in onLayout()
200 button.layout(start - halfWidth, 0, in onLayout()
201 start + halfWidth, button.getMeasuredHeight()); in onLayout()