Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 工具条没有被移除?_Android_Xml_Android Layout - Fatal编程技术网

Android 工具条没有被移除?

Android 工具条没有被移除?,android,xml,android-layout,Android,Xml,Android Layout,所以我试图删除android设计页面上的工具栏,但由于某些原因无法删除 XML代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent"&

所以我试图删除android设计页面上的工具栏,但由于某些原因无法删除

XML代码:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match_parent"
    android:layout_width="match_parent">

</LinearLayout>

将此添加到清单文件中

  <application
        ...
        android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" >
        ...
    </application>

...

将此添加到清单文件中

  <application
        ...
        android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" >
        ...
    </application>

...

您是否在清单中设置了活动的主题,而没有操作栏

styles.xml中

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar" />

假的
真的
在您的AndroidManifest.xml中:

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar" />


然后在设计页面中,您需要选择刚刚在对话框中创建的主题。

您是否在清单中设置了活动的主题,而没有操作栏

styles.xml中

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar" />

假的
真的
在您的AndroidManifest.xml中:

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>
<activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar" />


然后,在设计页面中,您需要选择刚刚在对话框中创建的主题。

请提供更多信息。你的问题很难理解,请提供更多信息。你的问题很难理解;无法解析符号“@style/AppTheme.NoActionBar”。您需要在styles.xml中定义AppTheme.NoActionBar获取错误;无法解析符号“@style/AppTheme.NoActionBar”。您需要在styles.xml中定义AppTheme.NoActionBar