示例#1
0
 public ActionBarImpl(android.app.Activity activity)
 {
     mHideListener = new _AnimatorListenerAdapter_108(this);
     mShowListener = new _AnimatorListenerAdapter_125(this);
     mActivity     = activity;
     android.view.Window window = activity.getWindow();
     android.view.View   decor  = window.getDecorView();
     init(decor);
     if (!mActivity.getWindow().hasFeature(android.view.Window.FEATURE_ACTION_BAR_OVERLAY
                                           ))
     {
         mContentView = decor.findViewById(android.R.id.content);
     }
 }
示例#2
0
		internal void attach(android.content.Context context, android.app.ActivityThread 
			aThread, android.app.Instrumentation instr, android.os.IBinder token, int ident, 
			android.app.Application application, android.content.Intent intent, android.content.pm.ActivityInfo
			 info, java.lang.CharSequence title, android.app.Activity parent, string id, android.app.Activity
			.NonConfigurationInstances lastNonConfigurationInstances, android.content.res.Configuration
			 config)
		{
			attachBaseContext(context);
			mFragments.attachActivity(this);
			mWindow = [email protected](this);
			mWindow.setCallback(this);
			mWindow.getLayoutInflater().setPrivateFactory(this);
			if (info.softInputMode != android.view.WindowManagerClass.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED)
			{
				mWindow.setSoftInputMode(info.softInputMode);
			}
			if (info.uiOptions != 0)
			{
				mWindow.setUiOptions(info.uiOptions);
			}
			mUiThread = java.lang.Thread.currentThread();
			mMainThread = aThread;
			mInstrumentation = instr;
			mToken = token;
			mIdent = ident;
			mApplication = application;
			mIntent = intent;
			mComponent = intent.getComponent();
			mActivityInfo = info;
			mTitle = title;
			mParent = parent;
			mEmbeddedID = id;
			mLastNonConfigurationInstances = lastNonConfigurationInstances;
			mWindow.setWindowManager(null, mToken, mComponent.flattenToString(), (info.flags 
				& android.content.pm.ActivityInfo.FLAG_HARDWARE_ACCELERATED) != 0);
			if (mParent != null)
			{
				mWindow.setContainer(mParent.getWindow());
			}
			mWindowManager = mWindow.getWindowManager();
			mCurrentConfig = config;
		}
示例#3
0
		public ActionBarImpl(android.app.Activity activity)
		{
			mHideListener = new _AnimatorListenerAdapter_108(this);
			mShowListener = new _AnimatorListenerAdapter_125(this);
			mActivity = activity;
			android.view.Window window = activity.getWindow();
			android.view.View decor = window.getDecorView();
			init(decor);
			if (!mActivity.getWindow().hasFeature(android.view.Window.FEATURE_ACTION_BAR_OVERLAY
				))
			{
				mContentView = decor.findViewById(android.R.id.content);
			}
		}