InputMethodService.MaxWidth 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 maximum width, in pixels, available the input method.
public virtual int MaxWidth { [Android.Runtime.Register("getMaxWidth", "()I", "GetGetMaxWidthHandler")] get; }
[<get: Android.Runtime.Register("getMaxWidth", "()I", "GetGetMaxWidthHandler")>]
member this.MaxWidth : int
Property Value
- Attributes
Remarks
Return the maximum width, in pixels, available the input method. Input methods are positioned at the bottom of the screen and, unless running in fullscreen, will generally want to be as short as possible so should compute their height based on their contents. However, they can stretch as much as needed horizontally. The function returns to you the maximum amount of space available horizontally, which you can use if needed for UI placement.
In many cases this is not needed, you can just rely on the normal view layout mechanisms to position your views within the full horizontal space given to the input method.
Note that this value can change dynamically, in particular when the screen orientation changes.
Java documentation for android.inputmethodservice.InputMethodService.getMaxWidth()
.
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.