[英]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.