TextView.ShiftDrawingOffsetForStartOverhang Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true if shifting the drawing x offset for start overhang. -or- Set true for shifting the drawing x offset for showing overhang at the start position.
public virtual bool ShiftDrawingOffsetForStartOverhang { [Android.Runtime.Register("getShiftDrawingOffsetForStartOverhang", "()Z", "GetGetShiftDrawingOffsetForStartOverhangHandler", ApiSince=35)] get; [Android.Runtime.Register("setShiftDrawingOffsetForStartOverhang", "(Z)V", "GetSetShiftDrawingOffsetForStartOverhang_ZHandler", ApiSince=35)] set; }
[<get: Android.Runtime.Register("getShiftDrawingOffsetForStartOverhang", "()Z", "GetGetShiftDrawingOffsetForStartOverhangHandler", ApiSince=35)>]
[<set: Android.Runtime.Register("setShiftDrawingOffsetForStartOverhang", "(Z)V", "GetSetShiftDrawingOffsetForStartOverhang_ZHandler", ApiSince=35)>]
member this.ShiftDrawingOffsetForStartOverhang : bool with get, set
Property Value
True if shifting the drawing x offset for start overhang.
- Attributes
Remarks
Property getter documentation:
Returns true if shifting the drawing x offset for start overhang.
Java documentation for android.widget.TextView.getShiftDrawingOffsetForStartOverhang()
.
Property setter documentation:
Set true for shifting the drawing x offset for showing overhang at the start position.
This flag is ignored if the #getUseBoundsForWidth()
is false.
If this value is false, the TextView draws text from the zero even if there is a glyph stroke in a region where the x coordinate is negative. TextView clips the stroke in the region where the X coordinate is negative unless the parents has ViewGroup#getClipChildren()
to true. This is useful for aligning multiple TextViews vertically.
If this value is true, the TextView draws text with shifting the x coordinate of the drawing bounding box. This prevents the clipping even if the parents doesn't have ViewGroup#getClipChildren()
to true.
This value is false by default.
Java documentation for android.widget.TextView.setShiftDrawingOffsetForStartOverhang(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.