Skip to content

Instantly share code, notes, and snippets.

Working from home

Carlos M. carlosmuvi

Working from home
View GitHub Profile
carlosmuvi /
Created May 4, 2016 — forked from ffgiraldez/
Disable toolbar scroll flag when content it's not enough to fill the screen
public class ToolbarActivity extends AppCompatActivity {
// Set the flags that fit your needs
private static final int ENABLED_SCROLL_BEHAVIOR = AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS | AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL;
private static final int DISABLED_SCROLL_BEHAVIOR = 0;
private static final int SCROLL_DOWN = 1;
//Injected via ButterKnife (
Toolbar toolbar;
View app.js
angular.module('myApp', ['ionic', '', 'myApp.controllers'])
.run(function(DB) {
You can’t perform that action at this time.