Android holoeverywhere全屏

时间:2014-01-25 22:29:44

标签: android android-activity android-holo-everywhere android-fullscreen holoeverywhere

我想知道如何将我的活动设置为全屏。我知道如何在不使用holoeverywhere libs的情况下正常进行。但我无法使用holoeverywhere工作。

这就是我在创建方法中尝试执行此操作的内容

public class MainActivity extends org.holoeverywhere.app.Activity implements AdListener,
        OnClickListener, org.holoeverywhere.widget.AdapterView.OnItemSelectedListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Full Screen
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(ThemeManager.FULLSCREEN, ThemeManager.NO_ACTION_BAR);
        setContentView(R.layout.activity_main);

在我的清单上我有这个

<application
    android:name="org.holoeverywhere.app.Application"
    android:allowBackup="true"
    android:label="@string/app_name"
    android:theme="@style/Holo.Theme" >

我缺少什么,有什么我做错了什么或什么?,因为有了这些设置,我仍然无法让主要活动全屏。

解决方案

在清单中,我在清单

中的应用程序括号内执行了此操作
android:theme="@style/Holo.Theme.NoActionBar.Fullscreen"

0 个答案:

没有答案