Skip to content

Commit

Permalink
Remove ToastFactory, replace with SnackbarFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
hitherejoe committed Aug 20, 2015
1 parent 72cbbac commit d0df0fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
package com.hitherejoe.androidboilerplate.util;

/**
* Created by hitherejoe on 13/08/15.
*/
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.view.ViewGroup;

import com.hitherejoe.androidboilerplate.R;

public class SnackbarFactory {
}

public static Snackbar createSnackbar(Context context, View view, String message) {
Snackbar snackbar = Snackbar.make(view, message, Snackbar.LENGTH_SHORT);
ViewGroup group = (ViewGroup) snackbar.getView();
group.setBackgroundColor(context.getResources().getColor(R.color.primary));
return snackbar;
}
}

This file was deleted.

0 comments on commit d0df0fc

Please sign in to comment.