コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
ファイル: ThemeView.java プロジェクト: xclam/droid-notify
 /** 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();
 }