Skip to content

Instantly share code, notes, and snippets.

View ChaosPower's full-sized avatar
💭
I may be slow to respond.

Randy Glenn Aguirre ChaosPower

💭
I may be slow to respond.
  • Philippines
View GitHub Profile
@ChaosPower
ChaosPower / ItemListActivity.java
Last active January 2, 2016 02:59
Replace Fragment
Bundle arguments = new Bundle();
arguments.putString(DashboardDetailFragment.ARG_ITEM_ID, id);
DashboardDetailFragment dDf = new DashboardDetailFragment();
dDf.setArguments(arguments);
getSupportFragmentManager().beginTransaction()
.setCustomAnimations(R.anim.abc_fade_in,R.anim.abc_fade_out)
.replace(R.id.item_detail_container, dDf)
.commit();
@ChaosPower
ChaosPower / ConvUtils.java
Last active November 20, 2021 05:29
BMP Converter Utils
//You need to change this to your package
package com.example.xxx;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;