From 67e8f7585bbb55c7c94a385d8ae3217a4768eb26 Mon Sep 17 00:00:00 2001 From: kenkeiras Date: Sat, 8 Jul 2017 14:52:16 -0400 Subject: [PATCH] Use fullscreen. --- .../java/com/codigoparallevar/minicards/TestActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/codigoparallevar/minicards/TestActivity.java b/app/src/main/java/com/codigoparallevar/minicards/TestActivity.java index 59eb47d..14f1820 100644 --- a/app/src/main/java/com/codigoparallevar/minicards/TestActivity.java +++ b/app/src/main/java/com/codigoparallevar/minicards/TestActivity.java @@ -1,5 +1,6 @@ package com.codigoparallevar.minicards; +import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MotionEvent; @@ -12,6 +13,13 @@ public class TestActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + // Hide action bar + ActionBar actionBar = getSupportActionBar(); + if (actionBar != null) { + actionBar.hide(); + } + + // Use controled canvas partCanvasView = new PartCanvasView(this); setContentView(partCanvasView); }