Android Open Source - GameTimer Group Management Activity






From Project

Back to project page GameTimer.

License

The source code is released under:

Apache License

If you think the Android project GameTimer 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

package com.solidnw.gametimer.activities;
/*from  w  ww .j  a v a2s .  c o m*/
import java.util.ArrayList;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.widget.DrawerLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;

import com.solidnw.gametimer.R;
import com.solidnw.gametimer.adapter.DrawerListAdapter;
import com.solidnw.gametimer.fragments.GroupManagementFragment;
import com.solidnw.gametimer.listener.DrawerItemClickListener;
import com.solidnw.gametimer.listener.DrawerItemClickListener.BaseActivity;
import com.solidnw.gametimer.model.DrawerConstants;
import com.solidnw.gametimer.model.PreferencesConstants;

public class GroupManagementActivity// extends FragmentActivity
{
//    private int mTheme;
//    private DrawerLayout mDrawerLayout;
//    private ListView mDrawerListView;
//    private ActionBarDrawerToggle mDrawerToggle;
//    private ArrayList<String> mDrawerContent;
//    private GroupManagementFragment mManagementFragment;
//
//    public void onCreate(Bundle savedInstanceState) {
//        setTheme();
//
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_group_management);
//        
//        init();
//    }
//
//    public boolean onCreateOptionsMenu(Menu menu) {
//        getMenuInflater().inflate(R.menu.actionbar_new_group, menu);
//        
//        if (mTheme == android.R.style.Theme_Holo) {
//            menu.getItem(0).setIcon(R.drawable.add_group_light);
//        }  
//
//        return true;
//    }
//
//    protected void onPostCreate(Bundle savedInstanceState) {
//        super.onPostCreate(savedInstanceState);
//        mDrawerToggle.syncState();
//    }
//
//    public void onConfigurationChanged(Configuration newConfig) {
//        super.onConfigurationChanged(newConfig);
//        mDrawerToggle.onConfigurationChanged(newConfig);
//    }
//
//    public boolean onOptionsItemSelected(MenuItem item) {
//        if (mDrawerToggle.onOptionsItemSelected(item)) {
//            return true;
//        }
//
//        switch (item.getItemId()) {
//            case R.id.new_group:
//                onNewGroup();
//                return true;
//
//            default:
//                return super.onOptionsItemSelected(item);
//        }
//    }
//
//    private void setTheme() {
//        mTheme = getSharedPreferences(PreferencesConstants.PREFERENCES_NAME, 0).
//                getInt(PreferencesConstants.PREF_KEY_THEME, PreferencesConstants.DEFAULT_THEME);
//
//        setTheme(mTheme);
//    }
//
//    private void init() {
//        initNavigationDrawer();
//        
//        mManagementFragment = new GroupManagementFragment();
//        
//        getSupportFragmentManager().
//                beginTransaction().
//                add(R.id.groupmgmtact_content_layout, mManagementFragment).
//                commit();
//    }
//    
//    private void initNavigationDrawer() {
//        mDrawerLayout = (DrawerLayout) findViewById(R.id.groupmgmtact_drawerlayout);
//        mDrawerListView = (ListView) findViewById(R.id.listview_drawer);
//        mDrawerContent = DrawerConstants.getAllItems();
//
//        mDrawerListView.setAdapter(new DrawerListAdapter(this, mDrawerContent));
//        mDrawerListView.setOnItemClickListener(new DrawerItemClickListener(this, BaseActivity.GROUP_MGMT, mDrawerLayout));
//
//        // Allow toggling navigation drawer via app icon
//        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
//        {
//            mDrawerToggle = new ActionBarDrawerToggle(
//                    this, mDrawerLayout, R.drawable.ic_drawer,
//                    R.string.open_drawer, R.string.close_drawer);
//            mDrawerLayout.setDrawerListener(mDrawerToggle);
//
//            getActionBar().setDisplayHomeAsUpEnabled(true);
//        }
//    }
//
//    private void onNewGroup()
//    {
//        Intent intent = new Intent(this, GroupActivity.class);
//        startActivity(intent);
//    }
}




Java Source Code List

com.solidnw.gametimer.activities.GameActivity.java
com.solidnw.gametimer.activities.GroupActivity.java
com.solidnw.gametimer.activities.GroupManagementActivity.java
com.solidnw.gametimer.activities.MainActivity.java
com.solidnw.gametimer.activities.PlayerActivity.java
com.solidnw.gametimer.activities.PlayerManagementActivity.java
com.solidnw.gametimer.adapter.AbstractRemoveItemAdapter.java
com.solidnw.gametimer.adapter.ColorAdapter.java
com.solidnw.gametimer.adapter.DrawerListAdapter.java
com.solidnw.gametimer.adapter.GameModePagerAdapter.java
com.solidnw.gametimer.adapter.GroupAdapter.java
com.solidnw.gametimer.adapter.RemoveGroupListAdapter.java
com.solidnw.gametimer.adapter.RemoveMemberListAdapter.java
com.solidnw.gametimer.adapter.RemovePlayerListAdapter.java
com.solidnw.gametimer.database.DatabaseHelper.java
com.solidnw.gametimer.database.DatabaseLayer.java
com.solidnw.gametimer.fragments.GameFragment.java
com.solidnw.gametimer.fragments.GameModeFragment.java
com.solidnw.gametimer.fragments.GameModePagerFragment.java
com.solidnw.gametimer.fragments.GroupFragment.java
com.solidnw.gametimer.fragments.GroupManagementFragment.java
com.solidnw.gametimer.fragments.PlayerFragment.java
com.solidnw.gametimer.fragments.PlayerManagementFragment.java
com.solidnw.gametimer.listener.DrawerItemClickListener.java
com.solidnw.gametimer.model.DrawerConstants.java
com.solidnw.gametimer.model.GameModeConstants.java
com.solidnw.gametimer.model.GradientHelper.java
com.solidnw.gametimer.model.Gradient.java
com.solidnw.gametimer.model.Group.java
com.solidnw.gametimer.model.IntentConstants.java
com.solidnw.gametimer.model.Player.java
com.solidnw.gametimer.model.PreferencesConstants.java
com.solidnw.gametimer.model.Time.java