Lines Matching refs:tab

49  * Equivalently, selecting a tab will result in a call to
51 * the tab will result in whichHandle being {@link OnTriggerListener#NO_HANDLE}.
113 * Interface definition for a callback to be invoked when a tab is triggered
159 * {@link #tab} is the tab shown on the screen in the default state.
160 * {@link #text} is the view revealed as the user slides the tab out.
166 * Tab alignment - determines which side the tab should be drawn on
181 private final ImageView tab;
192 * @param tabId drawable for the tab
197 // Create tab
198 tab = new ImageView(parent.getContext());
199 tab.setBackgroundResource(tabId);
200 tab.setScaleType(ScaleType.CENTER);
201 tab.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
221 parent.addView(tab);
226 tab.setImageResource(iconId);
230 tab.setBackgroundResource(tabId);
243 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
244 : alignment_value - tab.getLeft()) : 0;
245 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
246 : alignment_value - tab.getTop());
251 tab.startAnimation(trans);
258 tab.setVisibility(View.VISIBLE);
262 int dx = horiz ? (alignment == ALIGN_LEFT ? tab.getWidth() : -tab.getWidth()) : 0;
263 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight());
267 tab.startAnimation(trans);
274 tab.setPressed(state == STATE_PRESSED);
280 if (tab.getBackground().isStateful()) {
281 tab.getBackground().setState(activeState);
301 tab.setVisibility(View.VISIBLE);
304 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getLeft()
305 : alignment_value - tab.getRight()) : 0;
306 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop()
307 : alignment_value - tab.getBottom());
313 tab.startAnimation(trans);
317 tab.offsetLeftAndRight(dx);
320 tab.offsetTopAndBottom(dy);
323 tab.clearAnimation();
343 final Drawable tabBackground = tab.getBackground();
364 tab.layout(0, top, handleWidth, bottom);
370 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom);
383 tab.layout(left, 0, right, handleHeight);
388 tab.layout(left, parentHeight - handleHeight, right, parentHeight);
406 tab.measure(View.MeasureSpec.makeSafeMeasureSpec(width, View.MeasureSpec.UNSPECIFIED),
413 * Get the measured tab width. Must be called after {@link Slider#measure()}.
417 return tab.getMeasuredWidth();
421 * Get the measured tab width. Must be called after {@link Slider#measure()}.
425 return tab.getMeasuredHeight();
436 tab.startAnimation(anim1);
524 View leftHandle = mLeftSlider.tab;
528 View rightHandle = mRightSlider.tab;
651 int right = slider.tab.getRight();
652 int width = slider.tab.getWidth();
653 int left = slider.tab.getLeft();
655 int holdOffset = holdAfter ? 0 : width; // how much of tab to show at the end of anim
660 int top = slider.tab.getTop();
661 int bottom = slider.tab.getBottom();
662 int height = slider.tab.getHeight();
664 int holdOffset = holdAfter ? 0 : height; // how much of tab to show at end of anim
741 final View handle = mCurrentSlider.tab;
859 // When visibility changes and the user has a tab selected, unselect it and