content: package id.merahmuda.bcd.activity;
  
  import android.os.Build;
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.MenuItem;
  import android.view.View;
  import android.view.Window;
  import android.view.WindowManager;
  
  import id.merahmuda.bcd.R;
  
  public class DetailEventActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_detail_event);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
          setTitle("Back");
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
          getSupportActionBar().setDisplayShowHomeEnabled(true);
  
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
              Window w = getWindow(); // in Activity's onCreate() for instance
              w.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
          }
  
      }
  
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // handle arrow click here
          if (item.getItemId() == android.R.id.home) {
              finish(); // close this activity and return to preview activity (if there is any)
          }
  
          return super.onOptionsItemSelected(item);
      }
  }
  