내 활동에 대한 자습서 rocketscissorpaper의 메서드를 붙여 넣었지만 문제는 내 코드를 실행할 때 캔버스 배경이 전체 화면으로 표시되지 않고 두 가지 프로젝트간에 차이가 없음을 알 수 있습니다. 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>
아마도'manifest' 파일은 더 좋은 아이디어를 줄 것입니까? – SudoRahul