将这些行放入您的活动中 - onCreate方法 -
super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
然后加入android:theme="@style/AppTheme.NoActionBar"
清单档案中的样子 -
<activity
android:name=".EmailValidation"
android:configChanges="keyboardHidden|screenSize|orientation"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="adjustPan|stateHidden" />
我希望这将是帮助你。
它说'不能解析符号在android:theme =“@ style/AppTheme.NoActionBar”' –
这里你把这个 - “android:theme =”@ style/AppTheme.NoActionBar“' - 在你的项目? –
里面的应用水平 –