File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/processing/mode/android Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 26
26
import org .apache .tools .ant .Project ;
27
27
import org .apache .tools .ant .ProjectHelper ;
28
28
29
+ import android .view .Window ;
30
+ import android .view .WindowManager ;
29
31
import processing .app .Base ;
30
32
import processing .app .Library ;
31
33
import processing .app .Preferences ;
@@ -870,6 +872,12 @@ private void writeMainActivity(final File file) {
870
872
writer .println (" @Override" );
871
873
writer .println (" protected void onCreate(Bundle savedInstanceState) {" );
872
874
writer .println (" super.onCreate(savedInstanceState);" );
875
+ writer .println (" Window window = getWindow();" );
876
+ writer .println (" requestWindowFeature(Window.FEATURE_NO_TITLE);" );
877
+ writer .println ("window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,"
878
+ + "WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);" );
879
+ writer .println ("window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,"
880
+ + "WindowManager.LayoutParams.FLAG_FULLSCREEN);" );
873
881
writer .println (" setContentView(R.layout.main);" );
874
882
writer .println (" }" );
875
883
writer .println ("}" );
You can’t perform that action at this time.
0 commit comments