Sofia API Reference

  • Package Index
  • Class Index
  • Packages
  • sofia.app
    • Interfaces
    • ScreenMethods
    • Classes
    • ActivityStarter
    • ListScreen
    • Screen
    • ShapeScreen
    • Annotations
    • OptionsMenu
    • Persistent
    • Persistor
    • ScreenLayout
  • sofia.content
  • sofia.data
  • sofia.graphics
  • sofia.util
  • sofia.view
  • sofia.widget

package
sofia.app

Provides core functionality related to Sofia-based Android applications and activities. The Screen class in this package extends android.app.Activity and is the base class for all Sofia-based activities.

Other functionality provided by this package is automatic persistence for data in activities (see the Persistent annotation).


Interfaces

ScreenMethods

Lists the common methods that are provided by classes like Screen, MapScreen, and other "Screen-like" classes that cannot be in the same class hierarchy as Screen. 

Classes

ActivityStarter

Starts another screen or activity for the user and slides it into view. 

ListScreen<E>

ListScreen is a subclass of screen that provides a built-in ListView and convenience methods for manipulating the list directly in the screen class instead of having to call getListView() for every operation. 

Screen The Screen class represents a single screen in an Android application. 
ShapeScreen

ShapeScreen is a subclass of screen that provides a built-in ShapeView and convenience methods for manipulating shapes directly in the screen class instead of having to call getShapeView() for every operation. 

Annotations

OptionsMenu

Use this annotation on a subclass of Screen to specify the menu resource that should be loaded when the user presses the Menu button. 

Persistent

Indicates that a field in a Screen subclass should be saved to disk when the activity is dismissed and restored the next time the activity is started. 

Persistor

Provides custom persistence support for objects of the annotated class. 

ScreenLayout

Use this annotation on a subclass of Screen to specify the layout resource that should be inflated when that screen is displayed.