Android Open Source - Android-Dashboard-Ui-Demo Center Activity






From Project

Back to project page Android-Dashboard-Ui-Demo.

License

The source code is released under:

GNU General Public License

If you think the Android project Android-Dashboard-Ui-Demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2012-2013 Daniel Medina <http://danielme.com>
 * // www . j av a 2s.c  o m
 * This file is part of "Android Dashboard UI Demo".
 * 
 * "Android Dashboard UI Demo" is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3.
 *
 * "Android Dashboard UI Demo" is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License version 3
 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-3.0.html/>
 */
package com.danielme.android.dashboardui;


import android.os.Bundle;
import android.support.v7.app.ActionBar;

public class CenterActivity extends AbstractDashboardActivity
{
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
      getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE|ActionBar.DISPLAY_SHOW_HOME|ActionBar.DISPLAY_HOME_AS_UP);  
  }  
  
  @Override
  protected int getContentView()
  {
    return R.layout.center;
  }


  @Override
  protected int getSelectedNavigationItem()
  {    
    return ITEM_CENTER;
  }

}




Java Source Code List

com.danielme.android.dashboardui.AbstractDashboardActivity.java
com.danielme.android.dashboardui.CenterActivity.java
com.danielme.android.dashboardui.FullActivity.java
com.danielme.android.dashboardui.HomeActivity.java
com.danielme.android.dashboardui.WidthActivity.java