Lines Matching refs:tab

48  * Equivalently, selecting a tab will result in a call to
50 * the tab will result in whichHandle being {@link OnTriggerListener#NO_HANDLE}.
107 * Interface definition for a callback to be invoked when a tab is triggered
153 * {@link #tab} is the tab shown on the screen in the default state.
154 * {@link #text} is the view revealed as the user slides the tab out.
160 * Tab alignment - determines which side the tab should be drawn on
175 private final ImageView tab;
186 * @param tabId drawable for the tab
191 // Create tab
192 tab = new ImageView(parent.getContext());
193 tab.setBackgroundResource(tabId);
194 tab.setScaleType(ScaleType.CENTER);
195 tab.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
215 parent.addView(tab);
220 tab.setImageResource(iconId);
224 tab.setBackgroundResource(tabId);
237 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
238 : alignment_value - tab.getLeft()) : 0;
239 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
240 : alignment_value - tab.getTop());
245 tab.startAnimation(trans);
252 tab.setVisibility(View.VISIBLE);
256 int dx = horiz ? (alignment == ALIGN_LEFT ? tab.getWidth() : -tab.getWidth()) : 0;
257 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight());
261 tab.startAnimation(trans);
268 tab.setPressed(state == STATE_PRESSED);
274 if (tab.getBackground().isStateful()) {
275 tab.getBackground().setState(activeState);
295 tab.setVisibility(View.VISIBLE);
298 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getLeft()
299 : alignment_value - tab.getRight()) : 0;
300 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop()
301 : alignment_value - tab.getBottom());
307 tab.startAnimation(trans);
311 tab.offsetLeftAndRight(dx);
314 tab.offsetTopAndBottom(dy);
317 tab.clearAnimation();
337 final Drawable tabBackground = tab.getBackground();
358 tab.layout(0, top, handleWidth, bottom);
364 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom);
377 tab.layout(left, 0, right, handleHeight);
382 tab.layout(left, parentHeight - handleHeight, right, parentHeight);
398 tab.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
405 * Get the measured tab width. Must be called after {@link Slider#measure()}.
409 return tab.getMeasuredWidth();
413 * Get the measured tab width. Must be called after {@link Slider#measure()}.
417 return tab.getMeasuredHeight();
428 tab.startAnimation(anim1);
516 View leftHandle = mLeftSlider.tab;
520 View rightHandle = mRightSlider.tab;
643 int right = slider.tab.getRight();
644 int width = slider.tab.getWidth();
645 int left = slider.tab.getLeft();
647 int holdOffset = holdAfter ? 0 : width; // how much of tab to show at the end of anim
652 int top = slider.tab.getTop();
653 int bottom = slider.tab.getBottom();
654 int height = slider.tab.getHeight();
656 int holdOffset = holdAfter ? 0 : height; // how much of tab to show at end of anim
733 final View handle = mCurrentSlider.tab;
851 // When visibility changes and the user has a tab selected, unselect it and