AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.AppInventorCompatActivity Class Reference
Inheritance diagram for com.google.appinventor.components.runtime.AppInventorCompatActivity:
com.google.appinventor.components.runtime.Form com.google.appinventor.components.runtime.ListPickerActivity com.google.appinventor.components.runtime.SplashActivity com.google.appinventor.components.runtime.WebViewActivity com.google.appinventor.components.runtime.ReplForm

Classes

enum  Theme
 

Public Member Functions

void onCreate (Bundle icicle)
 
final boolean isAppCompatMode ()
 
void onConfigurationChanged (Configuration newConfig)
 
void onSupportActionModeStarted (ActionMode actionMode)
 
void onSupportActionModeFinished (ActionMode actionMode)
 
ActionMode onWindowStartingSupportActionMode (Callback callback)
 
void setContentView (View view)
 
ActionBar getSupportActionBar ()
 

Static Public Member Functions

static boolean isEmulator ()
 
static boolean isClassicMode ()
 
static void setClassicModeFromYail (boolean newClassicMode)
 

Protected Member Functions

void onPostCreate (Bundle savedInstanceState)
 
void onPostResume ()
 
void onStop ()
 
void onDestroy ()
 
void onTitleChanged (CharSequence title, int color)
 
void setActionBarEnabled (boolean enabled)
 
void setClassicMode (boolean classic)
 
void setPrimaryColor (int color)
 
boolean isRepl ()
 
void hideTitleBar ()
 
void maybeShowTitleBar ()
 
void styleTitleBar ()
 
void setAppInventorTheme (Theme theme)
 

Static Protected Member Functions

static boolean isActionBarEnabled ()
 
static int getPrimaryColor ()
 

Protected Attributes

ThemeHelper themeHelper
 

Detailed Description

AppInventorCompatActivity provides a base implementation of Activity that handles the styling of the application. This allows the user to change the Theme of the application in the REPL (to the best of our ability). Any Activity in App Inventor should now extend this class to get the correct theme.

Author
ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du (Evan W. Patton)

Definition at line 40 of file AppInventorCompatActivity.java.

Member Function Documentation

◆ getPrimaryColor()

static int com.google.appinventor.components.runtime.AppInventorCompatActivity.getPrimaryColor ( )
staticprotected

Definition at line 248 of file AppInventorCompatActivity.java.

◆ getSupportActionBar()

ActionBar com.google.appinventor.components.runtime.AppInventorCompatActivity.getSupportActionBar ( )

Definition at line 207 of file AppInventorCompatActivity.java.

◆ hideTitleBar()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.hideTitleBar ( )
protected

Definition at line 268 of file AppInventorCompatActivity.java.

◆ isActionBarEnabled()

static boolean com.google.appinventor.components.runtime.AppInventorCompatActivity.isActionBarEnabled ( )
staticprotected

Definition at line 227 of file AppInventorCompatActivity.java.

◆ isAppCompatMode()

final boolean com.google.appinventor.components.runtime.AppInventorCompatActivity.isAppCompatMode ( )

Definition at line 119 of file AppInventorCompatActivity.java.

◆ isClassicMode()

static boolean com.google.appinventor.components.runtime.AppInventorCompatActivity.isClassicMode ( )
static

Definition at line 237 of file AppInventorCompatActivity.java.

◆ isEmulator()

static boolean com.google.appinventor.components.runtime.AppInventorCompatActivity.isEmulator ( )
static

Definition at line 220 of file AppInventorCompatActivity.java.

◆ isRepl()

boolean com.google.appinventor.components.runtime.AppInventorCompatActivity.isRepl ( )
protected

◆ maybeShowTitleBar()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.maybeShowTitleBar ( )
protected

◆ onConfigurationChanged()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onConfigurationChanged ( Configuration  newConfig)

◆ onCreate()

◆ onDestroy()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onDestroy ( )
protected

◆ onPostCreate()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onPostCreate ( Bundle  savedInstanceState)
protected

Definition at line 124 of file AppInventorCompatActivity.java.

◆ onPostResume()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onPostResume ( )
protected

Definition at line 132 of file AppInventorCompatActivity.java.

◆ onStop()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onStop ( )
protected

◆ onSupportActionModeFinished()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onSupportActionModeFinished ( ActionMode  actionMode)

Definition at line 179 of file AppInventorCompatActivity.java.

◆ onSupportActionModeStarted()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onSupportActionModeStarted ( ActionMode  actionMode)

Definition at line 174 of file AppInventorCompatActivity.java.

◆ onTitleChanged()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.onTitleChanged ( CharSequence  title,
int  color 
)
protected

Definition at line 164 of file AppInventorCompatActivity.java.

◆ onWindowStartingSupportActionMode()

ActionMode com.google.appinventor.components.runtime.AppInventorCompatActivity.onWindowStartingSupportActionMode ( Callback  callback)

Definition at line 185 of file AppInventorCompatActivity.java.

◆ setActionBarEnabled()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.setActionBarEnabled ( boolean  enabled)
protected

Definition at line 232 of file AppInventorCompatActivity.java.

◆ setAppInventorTheme()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.setAppInventorTheme ( Theme  theme)
protected

Definition at line 311 of file AppInventorCompatActivity.java.

◆ setClassicMode()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.setClassicMode ( boolean  classic)
protected

Definition at line 242 of file AppInventorCompatActivity.java.

◆ setClassicModeFromYail()

static void com.google.appinventor.components.runtime.AppInventorCompatActivity.setClassicModeFromYail ( boolean  newClassicMode)
static

Definition at line 350 of file AppInventorCompatActivity.java.

◆ setContentView()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.setContentView ( View  view)

Definition at line 190 of file AppInventorCompatActivity.java.

◆ setPrimaryColor()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.setPrimaryColor ( int  color)
protected

Definition at line 253 of file AppInventorCompatActivity.java.

◆ styleTitleBar()

void com.google.appinventor.components.runtime.AppInventorCompatActivity.styleTitleBar ( )
protected

Definition at line 292 of file AppInventorCompatActivity.java.

Member Data Documentation

◆ themeHelper

ThemeHelper com.google.appinventor.components.runtime.AppInventorCompatActivity.themeHelper
protected

Definition at line 62 of file AppInventorCompatActivity.java.


The documentation for this class was generated from the following file: