/** * Called when the activity is created. Set up views and buttons. * * @param bundle - Activity bundle. */ @Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); _debug = Log.getDebug(); if (_debug) Log.v("MMSPreferenceActivity.onCreate()"); _context = this; Common.setApplicationLanguage(_context, this); this.addPreferencesFromResource(R.xml.mms_preferences); this.setContentView(R.layout.mms_preferences); setupCustomPreferences(); }
/** Class Constructor. */ public ThemeView(Context context, ThemeViewFlipper themeViewFlipper, String packageName) { super(context); _debug = Log.getDebug(); ; if (_debug) Log.v("ThemeView.ThemeView()"); _context = context; _preferences = PreferenceManager.getDefaultSharedPreferences(context); _themeViewFlipper = themeViewFlipper; _themePackageName = packageName; View.inflate(context, R.layout.theme_notification, this); initLayoutItems(); setupLayoutTheme(); setupViewHeaderButtons(); setupViewButtons(); populateViewInfo(); }