LinearLayout

Declaration

class enamlnative.widgets.linear_layout.LinearLayout(parent=None, **kwargs)[source]

Bases: enamlnative.widgets.view_group.ViewGroup

A simple control for displaying read-only text.

orientation

Should the layout be a column or a row.

proxy

A reference to the ProxyLabel object.

Android Implementation

class enamlnative.android.android_linear_layout.AndroidLinearLayout[source]

Bases: enamlnative.android.android_view_group.AndroidViewGroup, enamlnative.widgets.linear_layout.ProxyLinearLayout

An Android implementation of an Enaml ProxyLinearLayout.

widget

A reference to the widget created by the proxy.

layout_param_type

Use LinearLayout params

create_widget()[source]

Create the underlying widget.

set_orientation(orientation)[source]

Set the text in the widget.

create_layout_params(child, layout)[source]

Create the LayoutParams for a child with it’s requested layout parameters. Subclasses should override this as needed to handle layout specific needs.

Parameters
  • child (AndroidView) – A view to create layout params for.

  • layout (Dict) – A dict of layout parameters to use to create the layout.

Returns

layout_params – A LayoutParams bridge object with the requested layout options.

Return type

LayoutParams

No iOS implementation found.