Toast.XOffset 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.
Return the X offset in pixels to apply to the gravity's location.
public virtual int XOffset { [Android.Runtime.Register("getXOffset", "()I", "GetGetXOffsetHandler")] get; }
[<get: Android.Runtime.Register("getXOffset", "()I", "GetGetXOffsetHandler")>]
member this.XOffset : int
Property Value
- Attributes
Remarks
Return the X offset in pixels to apply to the gravity's location.
<strong>Warning:</strong> Starting from Android Build.VERSION_CODES#R
, for apps targeting API level Build.VERSION_CODES#R
or higher, this method shouldn't be called on text toasts as its return value may not reflect actual value since text toasts are not rendered by the app anymore.
Java documentation for android.widget.Toast.getXOffset()
.
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.