class EditToolbar : ViewGroup
(source)
Sub-component of the browser toolbar responsible for allowing the user to edit the URL.
Structure: +---------------------------------+---------+------+ | url | actions | exit | +---------------------------------+---------+------+
EditToolbar(context: Context, toolbar: BrowserToolbar)
Sub-component of the browser toolbar responsible for allowing the user to edit the URL. |
fun focus(): Unit
Focus the URL editing component and show the virtual keyboard if needed. |
|
fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int): Unit |
|
fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit |
|
fun updateUrl(url: String): Unit
Updates the URL. This should only be called if the toolbar is not in editing mode. Otherwise this might override the URL the user is currently typing. |
val View.isLTR: Boolean
Is the horizontal layout direction of this view from Left to Right? |
|
val View.isRTL: Boolean
Is the horizontal layout direction of this view from Right to Left? |
fun ViewGroup.forEach(action: (View) -> Unit): Unit
Performs the given action on each View in this ViewGroup. |
|
fun View.hideKeyboard(): Unit
Hides the soft input window. |
|
fun View.isGone(): Boolean
Returns true if this view's visibility is set to View.GONE. |
|
fun View.isInvisible(): Boolean
Returns true if this view's visibility is set to View.INVISIBLE. |
|
fun View.isVisible(): Boolean
Returns true if this view's visibility is set to View.VISIBLE. |
|
fun View.setPadding(padding: Padding): Unit
Set a padding using Padding object. |
|
fun View.showKeyboard(flags: Int = InputMethodManager.SHOW_IMPLICIT): Unit
Tries to focus this view and show the soft input window for it. |