Skip to content

Instantly share code, notes, and snippets.

View sbelloz's full-sized avatar
💻
Focusing

Simone Bellotti sbelloz

💻
Focusing
View GitHub Profile
@sbelloz
sbelloz / CypherUtils.java
Last active August 29, 2015 14:04
Encryption and Decryption in Android
package it.bellotti.java.crypto;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.spec.KeySpec;
@sbelloz
sbelloz / ResizeAnimation.java
Created July 28, 2014 09:37
A class that produce an animation when resizing a view
public class ResizeAnimation extends Animation {
// final int startWidth;
final int startHeight;
final int targetHeight;
// final int targetWidth;
View view;
public ResizeAnimation(View view, int targetWidth) {
this.view = view;
// this.targetWidth = targetWidth;