Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View carlosdiaz's full-sized avatar
🏠
Working from home

Carlos carlosdiaz

🏠
Working from home
  • San Diego California
View GitHub Profile
@carlosdiaz
carlosdiaz / ResultsActivity.java
Created May 22, 2015 18:20
This function makes an animation based in four different images (Simulating an animated gif image)
public void enableLoadingImage() {
imageSwitcher = (ImageSwitcher) findViewById(R.id.imageSwitcher1);
ImageView image = (ImageView) findViewById(R.id.connectionImage);
image.setVisibility(View.GONE);
imageSwitcher.setFactory(new ViewFactory() {
@Override