Back to project page androidsoft-kids-memory.
The source code is released under:
GNU General Public License
If you think the Android project androidsoft-kids-memory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright (c) 2010-2014 Pierre LEVY androidsoft.org * This program 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, either version 3 of the License, or * (at your option) any later version./*ww w . j a va2 s . co m*/ * * This program 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 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.androidsoft.games.memory.kids.ui; import android.graphics.Typeface; import android.os.Bundle; import android.view.View; import org.silo.games.memory.kids.R; import org.androidsoft.utils.credits.CreditsParams; import org.androidsoft.utils.credits.CreditsView; import org.androidsoft.utils.ui.BasicActivity; import com.fairket.sdk.android.FairketApiClient; import com.fairket.sdk.android.FairketHelperForGingerbread; /** * Credits Activity * * @author Pierre Levy */ public class CreditsActivity extends BasicActivity { private FairketApiClient mFaiirketApiClient; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); View view = new CreditsView(this, getCreditsParams()); setContentView(view); mFaiirketApiClient = FairketHelperForGingerbread.onCreate(this, MainActivity.FAIRKET_APP_PUBLIC_KEY, MainActivity.FAIRKET_LOG_TAG); } private CreditsParams getCreditsParams() { CreditsParams p = new CreditsParams(); p.setAppNameRes(R.string.credits_app_name); p.setAppVersionRes(R.string.credits_current_version); p.setBitmapBackgroundRes(R.drawable.background); p.setBitmapBackgroundLandscapeRes(R.drawable.background_land); p.setArrayCreditsRes(R.array.credits); p.setColorDefault(0xFF7BB026); p.setTextSizeDefault(48); p.setTypefaceDefault(Typeface .create(Typeface.SANS_SERIF, Typeface.BOLD)); p.setSpacingBeforeDefault(20); p.setSpacingAfterDefault(30); p.setColorCategory(0xFFFFFFFF); p.setTextSizeCategory(28); p.setTypefaceCategory(Typeface.create(Typeface.SANS_SERIF, Typeface.ITALIC)); p.setSpacingBeforeCategory(20); p.setSpacingAfterCategory(20); return p; } /** * {@inheritDoc } */ @Override public int getMenuResource() { return R.menu.menu_close; } /** * {@inheritDoc } */ @Override public int getMenuCloseId() { return R.id.menu_close; } @Override protected void onResume() { super.onResume(); FairketHelperForGingerbread.onResume(mFaiirketApiClient); } @Override protected void onPause() { super.onPause(); FairketHelperForGingerbread.onPause(mFaiirketApiClient); } @Override protected void onDestroy() { super.onDestroy(); FairketHelperForGingerbread.onDestroy(mFaiirketApiClient); } }