Guest User

Untitled

a guest
May 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. error: cannot find symbol variable fullscreen_content
  2.  
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6.  
  7. setContentView(R.layout.activity_game);
  8.  
  9. mVisible = true;
  10. mControlsView = findViewById(R.id.fullscreen_content_controls);
  11. mContentView = findViewById(R.id.fullscreen_content);
  12.  
  13.  
  14. // Set up the user interaction to manually show or hide the system UI.
  15. mContentView.setOnClickListener(new View.OnClickListener() {
  16. @Override
  17. public void onClick(View view) {
  18. toggle();
  19. }
  20. });
  21.  
  22. // Upon interacting with UI controls, delay any scheduled hide()
  23. // operations to prevent the jarring behavior of controls going away
  24. // while interacting with the UI.
  25. findViewById(R.id.dummy_button).setOnTouchListener(mDelayHideTouchListener);
  26. }
Add Comment
Please, Sign In to add comment