2013-03-02 2 views
1

내 활동에 대한 자습서 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> 

+0

아마도'manifest' 파일은 더 좋은 아이디어를 줄 것입니까? – SudoRahul

답변

0
<application 
    android:icon="@drawable/icon" 
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > 

안드로이드 : 테마 = "@ 안드로이드 : 스타일/Theme.NoTitleBar.Fullscreen"내가 여기에, 무슨 말이냐하면 XML 입니다

이 코드를 추가하면 응용 프로그램이 전체 화면으로 표시되고 알림 바가 숨겨집니다.

희망이 있습니다.

+0

pls 게시물 오류 로그 게시 –

+0

제목 표시 줄을 제거하지 않기 위해 320x600 비트 맵을 화면에 채우고 싶습니다. –

+0

화면의 절반이 검은 색입니다. –

관련 문제