Android/Full Screen

Retired DISLab
이동: 둘러보기, 찾기
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
 
public class FullScreenActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow()
            .setFlags(WindowManager.LayoutParams.FLAG_NO_STATUS_BAR,
                      WindowManager.LayoutParams.FLAG_NO_STATUS_BAR);
        setContentView(R.layout.main);
    }
}

thanks to ace’s comment. the code should be changed to

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                          WindowManager.LayoutParams.FLAG_FULLSCREEN );
개인 도구
이름공간
변수
행위
둘러보기
구성원
연구
연구실
기타
도구모음
인쇄/내보내기