2015-01-21 5 views

답변

1
//call this methord before setContentview() this will make screen full 

public static void fullscreen(Activity koutuk) 
    { 
     try { 
      koutuk.requestWindowFeature(Window.FEATURE_NO_TITLE); 
      koutuk.getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_FULLSCREEN, 
        WindowManager.LayoutParams.FLAG_FULLSCREEN); 

      if (Build.VERSION.SDK_INT < 16) { 
       koutuk.getWindow().setFlags(
         WindowManager.LayoutParams.FLAG_FULLSCREEN, 
         WindowManager.LayoutParams.FLAG_FULLSCREEN); 
      } 
     } catch (Exception e) { 

      // TODO: handle exception 
     } 
    } 

/// then find id to top most parent view of layout ie relative/linear 

View v = findViewById(R.id.linear); 
v.setSystemUiVisibility(View.GONE); 

now load your Webview from Activity oncreate 
+0

감사합니다,하지만 난 태그를 사용할 수있는 미리 정의 : 코드 – Monochromie

+0

없이 그것을 달성하고자하지만 난 그 미안 인식하지 오전 – koutuk