public class UIToolbar extends UIView
NoIntrinsicMetric
Constructor and Description |
---|
UIToolbar()
Constructs a default UIToolbar object located at (0,0) with 0 weight and
0 height.
|
UIToolbar(CGRect frame)
Constructs a UIToolbar object initialized with the dimensions and
position specified in the frame parameter.
|
Modifier and Type | Method and Description |
---|---|
int |
barStyle()
Returns the toolbar appearance style.
|
UIColor |
barTintColor()
Returns the tint color of the toolbar background.
|
void |
drawRect(CGRect rect)
This method is implicitly called when a view is first displayed or when
an event occurs that invalidates a visible part of the view and the view
needs to be redrawn.
|
boolean |
isTranslucent()
Checks if this toolbar is translucent.
|
List<UIBarButtonItem> |
items()
Returns the list of items that are displayed on this toolbar.
|
void |
layoutSubviews()
Changes the layout of this view's subviews.
|
void |
setBarStyle(int UIBarStyle)
Sets the toolbar appearance style.
|
void |
setBarTintColor(UIColor tintColor)
Sets the tint color of the toolbar background.
|
void |
setHidden(boolean hidden)
Sets a Boolean value that defines whether this view is hidden or not.
|
void |
setItems(List<UIBarButtonItem> items)
Set the list of items that will be displayed on this toolbar.
|
void |
setItems(List<UIBarButtonItem> items,
boolean animated)
Sets the items on the toolbar by animating the changes.
|
void |
setTranslucent(boolean translucent)
Sets a value that shows whether the toolbar is translucent or not.
|
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UIToolbar()
public UIToolbar(CGRect frame)
frame
- CGRect that defines dimension and position of the UIToolbar.public List<UIBarButtonItem> items()
public void setItems(List<UIBarButtonItem> items)
items
- The list of items that will be displayed on this toolbar.public void setItems(List<UIBarButtonItem> items, boolean animated)
items
- The items to display on the toolbar.animated
- A Boolean value if set to true animates the transition
the items; otherwise, does not.public void layoutSubviews()
UIView
layoutSubviews
in class UIView
public int barStyle()
UIBarStyle
public void setBarStyle(int UIBarStyle)
UIBarStyle
- The style that specifies its appearance.UIBarStyle
public UIColor barTintColor()
public void setBarTintColor(UIColor tintColor)
tintColor
- The tint color for the toolbar background.public boolean isTranslucent()
public void setTranslucent(boolean translucent)
translucent
- A Boolean value that shows whether the toolbar is
translucent not.public void setHidden(boolean hidden)
UIView
Copyright © 2020. All rights reserved.