Lines Matching defs:alignment
166 * Tab alignment - determines which side the tab should be drawn on
185 private int alignment = ALIGN_UNKNOWN;
242 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
243 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
245 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
261 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
262 int dx = horiz ? (alignment == ALIGN_LEFT ? tab.getWidth() : -tab.getWidth()) : 0;
263 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight());
303 final boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
304 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getLeft()
306 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop()
339 * @param alignment which side to align the widget to
341 void layout(int l, int t, int r, int b, int alignment) {
342 this.alignment = alignment;
357 if (alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT) {
363 if (alignment == ALIGN_LEFT) {
382 if (alignment == ALIGN_TOP) {