Created
April 4, 2016 06:32
-
-
Save kumar935/a54cfdf44aa31450f179077f483ddad5 to your computer and use it in GitHub Desktop.
Common android snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.support.design.widget.Snackbar; | |
| public class CustomizableSnackbar extends AppCompatActivity { | |
| // ******************* FOR SETTING COLOR | |
| Snackbar snack = Snackbar.make(findViewById(android.R.id.content), "Shipment Added", Snackbar.LENGTH_LONG); | |
| View view = snack.getView(); | |
| view.setBackgroundColor(Color.YELLOW); | |
| snack.show(); | |
| // ******************* http://stackoverflow.com/questions/30520625/what-is-new-features-of-android-design-support-library-and-how-to-use-its-snackbar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment