| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
View
Defines a View and provides pythonic access to its properties & a mechanism to define events.
You don't create views yourself. They are created by FullScreenWrapper2App.show_layout() after showing the xml and are populated in the Layout.views which is a BaseDict => ie. a dict that allows access by both [key] and .key
You can access a view's properties simply by Layout.views.viewname.property to get & set property. Doing this calls the appropriate SL4A api function like fullSetProperty()
To add and remove events, use the View.add_event() and View.remove_event() methods. To set the contents of a ListView, use the View.set_listitems() method
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
View constructer called with view_id & view_type. DO NOT create a view yourself. Views are created by FullScreenWrapper2App.show_layout() after showing the xml and are populated in the Layout.views which is a BaseDict => ie. a dict that allows access by both [key] and .key
|
Used to add an EventHandler to the view. You would typically add one of click_EventHandler or itemclick_EventHandler (for List Views) to a view |
removes an event added previously by matching the event_name. Use this to temporarily disable a view's click event |
sets a list for a ListView. Takes a list of str as input |
This allows pythonic access to setting a View's properties by calling SL4A api For eg: Layout.views.viewname.color = "#FFFFFFFF"
|
This allows pythonic access to getting a View's properties by calling SL4A api For eg: buttontext = Layout.views.buttonname.text |
str(View) will return the View.text
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 01 23:31:54 2012 | http://epydoc.sourceforge.net |