[英]why my canvas background isn't full screen (Android)?
我在活动中复制粘贴了robotscissorpaper教程的方法,但是问题是,当我运行代码时,画布背景不会全屏显示,并且我看到两个项目之间没有差异,即使xml也一样。 我缺少什么,这里是xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/linearLayout"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<com.show.showhidebutton.Game
android:id="@+id/surfaceView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</FrameLayout>
and here is the manifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.show.showhidebutton"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="Show Hide Button"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Logo"></activity>
<activity android:name=".Story"></activity>
<activity android:name=".Survival"></activity>
<activity android:name=".Store"></activity>
</application>
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
android:theme =“ @ android:style / Theme.NoTitleBar.Fullscreen”
添加这段代码将使您的应用程序全屏显示,并隐藏通知栏。
希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.